fix(pagination): make test work

This commit is contained in:
07akioni 2020-12-11 12:58:32 +08:00
parent 9221cfb1fc
commit d66a341548
2 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@
"@types/jest": "^26.0.15",
"@vue/compiler-sfc": "^3.0.2",
"@vue/eslint-config-standard": "^5.1.2",
"@vue/test-utils": "^2.0.0-beta.8",
"@vue/test-utils": "^2.0.0-beta.12",
"autoprefixer": "^9.8.6",
"babel-eslint": "^10.1.0",
"babel-jest": "^26.6.2",

View File

@ -1,7 +1,7 @@
import create from '../../create'
import { paginationLight } from '../styles'
import { mount } from '@vue/test-utils'
import Pagination from '../index'
import { NPagination } from '../index'
import enUS from '../../locales/enUS'
describe('n-pagination', () => {
@ -15,7 +15,7 @@ describe('n-pagination', () => {
})
describe('props.page', () => {
it('should work', () => {
const wrapper = mount(Pagination, {
const wrapper = mount(NPagination, {
props: {
page: 5,
pageCount: 10