1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 10:38:54 +08:00

fix lint errors

This commit is contained in:
lana-k
2021-02-28 21:29:52 +01:00
parent 664c43bce1
commit 7bd8388fd6
4 changed files with 32 additions and 30 deletions

View File

@@ -1,6 +1,6 @@
import { expect } from 'chai'
import sinon from 'sinon'
import { mount, shallowMount } from '@vue/test-utils'
import { mount } from '@vue/test-utils'
import Pager from '@/components/Pager.vue'
describe('Pager.vue', () => {
@@ -9,11 +9,13 @@ describe('Pager.vue', () => {
})
it('emits input event with a page', async () => {
const wrapper = mount(Pager, { propsData: {
pageCount: 5
}})
const wrapper = mount(Pager, {
propsData: {
pageCount: 5
}
})
// click on 'next page' link
// click on 'next page' link
await wrapper.find('.paginator-next').trigger('click')
expect(wrapper.emitted('input')[0]).to.eql([2])
@@ -23,9 +25,11 @@ describe('Pager.vue', () => {
})
it('changes the page when value is changed', async () => {
const wrapper = mount(Pager, { propsData: {
pageCount: 5
}})
const wrapper = mount(Pager, {
propsData: {
pageCount: 5
}
})
await wrapper.setProps({ value: 5 })
expect(wrapper.emitted('input')[0]).to.eql([5])