mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
test(checkbox): checkbox may not have label this test is no need (#4955)
* test(checkbox): checkbox may not have label this test is no need * fix: lint
This commit is contained in:
parent
755854ae0d
commit
15219169c3
@ -212,15 +212,6 @@ describe('n-checkbox', () => {
|
||||
)
|
||||
wrapper.unmount()
|
||||
})
|
||||
|
||||
it('should allow to set aria-labelledby from outside', () => {
|
||||
const wrapper = mount(NCheckbox)
|
||||
const labelId = wrapper.find('.n-checkbox__label').attributes('id')
|
||||
expect(wrapper.find('.n-checkbox').attributes('aria-labelledby')).toBe(
|
||||
labelId
|
||||
)
|
||||
wrapper.unmount()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
|
@ -3,7 +3,7 @@ import { mount } from '@vue/test-utils'
|
||||
import { NSpin } from '../index'
|
||||
import { Reload } from '@vicons/ionicons5'
|
||||
import { NIcon } from '../../icon'
|
||||
|
||||
import { sleep } from 'seemly'
|
||||
describe('n-spin', () => {
|
||||
it('should work with import on demand', () => {
|
||||
mount(NSpin)
|
||||
@ -104,7 +104,7 @@ describe('n-spin', () => {
|
||||
expect(wrapper.find('.n-spin-content').classes()).not.toContain(
|
||||
'n-spin-content--spinning'
|
||||
)
|
||||
await new Promise<void>((resolve) => setTimeout(() => resolve(), 1000))
|
||||
await sleep(1000)
|
||||
|
||||
expect(wrapper.find('.n-spin-content').classes()).toContain(
|
||||
'n-spin-content--spinning'
|
||||
@ -124,7 +124,7 @@ describe('n-spin', () => {
|
||||
expect(wrapper.find('.n-spin-content').classes()).not.toContain(
|
||||
'n-spin-content--spinning'
|
||||
)
|
||||
await new Promise<void>((resolve) => setTimeout(() => resolve(), 1000))
|
||||
await sleep(1000)
|
||||
|
||||
expect(wrapper.find('.n-spin-content').classes()).toContain(
|
||||
'n-spin-content--spinning'
|
||||
|
1
volar.d.ts
vendored
1
volar.d.ts
vendored
@ -141,6 +141,7 @@ declare module 'vue' {
|
||||
NUploadTrigger: typeof import('naive-ui')['NUploadTrigger']
|
||||
NWatermark: typeof import('naive-ui')['NWatermark']
|
||||
NEquation: typeof import('naive-ui')['NEquation']
|
||||
NPerformantEllipsis: typeof import('naive-ui')['NPerformantEllipsis']
|
||||
}
|
||||
}
|
||||
export {}
|
||||
|
Loading…
Reference in New Issue
Block a user