Co-authored-by: Alina Beck <alina.beck@mail.com>
This commit is contained in:
mattwr18 2019-10-30 13:37:30 +01:00
parent b916c9fe83
commit aabaa2e637

View File

@ -20,6 +20,7 @@ describe('Paginate.vue', () => {
beforeEach(() => {
wrapper = Wrapper()
})
describe('next button', () => {
beforeEach(() => {
propsData.hasNext = true
@ -38,7 +39,7 @@ describe('Paginate.vue', () => {
expect(nextButton.attributes().disabled).toBeUndefined()
})
it('emits back when clicked', async () => {
it('emits next when clicked', async () => {
await nextButton.trigger('click')
expect(wrapper.emitted().next).toHaveLength(1)
})