Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengjingchun committed Mar 27, 2017
1 parent c351b7f commit 5ccd050
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/unit/specs/PaginationDoc.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ describe('PaginationDoc', () => {
let startBtn = pagination.querySelectorAll('li.pagination-page a')[0]
expect(Number(startBtn.text)).to.equal(vm.totalSize - vm.maxSize + 1)
prevGroupBtn.click()
vm.$nextTick(() =>{
vm.$nextTick(() => {
pagination = vm.$el.querySelector('ul.pagination')
startBtn = pagination.querySelectorAll('li.pagination-page a')[0]
expect(Number(startBtn.text)).to.equal(vm.totalSize - vm.maxSize*2 + 1)
expect(Number(startBtn.text)).to.equal(vm.totalSize - vm.maxSize * 2 + 1)
prevGroupBtn.click()
vm.$nextTick(() =>{
vm.$nextTick(() => {
pagination = vm.$el.querySelector('ul.pagination')
startBtn = pagination.querySelectorAll('li.pagination-page a')[0]
expect(Number(startBtn.text)).to.equal(1)
Expand Down

0 comments on commit 5ccd050

Please sign in to comment.