Guest User

Untitled

a guest
Jul 22nd, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import {
  2. shallowMount
  3. } from '@vue/test-utils'
  4. import Paginator from '@/components/Paginator/Paginator'
  5.  
  6. describe('Paginator.vue', () => {
  7. it('should set next page 2 to current page when click the Next Button', () => {
  8. const paginator = shallowMount(Paginator)
  9. let button = paginator.find('button')
  10. button.trigger('click')
  11. expect(paginator.vm.currentPage).toBe(2)
  12. })
  13. })
Add Comment
Please, Sign In to add comment