mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
fix(pagination): make test work
This commit is contained in:
parent
9221cfb1fc
commit
d66a341548
@ -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",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user