mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-07 02:28:54 +08:00
update tests
This commit is contained in:
@@ -10,7 +10,7 @@ describe('Pager.vue', () => {
|
||||
|
||||
it('emits input event with a page', async () => {
|
||||
const wrapper = mount(Pager, {
|
||||
propsData: {
|
||||
props: {
|
||||
pageCount: 5
|
||||
}
|
||||
})
|
||||
@@ -20,13 +20,13 @@ describe('Pager.vue', () => {
|
||||
expect(wrapper.emitted('input')[0]).to.eql([2])
|
||||
|
||||
// click on the link to page 3 (it has index 2)
|
||||
await wrapper.findAll('.paginator-page-link').at(2).trigger('click')
|
||||
await wrapper.findAll('.paginator-page-link')[2].trigger('click')
|
||||
expect(wrapper.emitted('input')[1]).to.eql([3])
|
||||
})
|
||||
|
||||
it('changes the page when value is changed', async () => {
|
||||
const wrapper = mount(Pager, {
|
||||
propsData: {
|
||||
props: {
|
||||
pageCount: 5
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user