diff --git a/packages/vue/__tests__/Transition.spec.ts b/packages/vue/__tests__/Transition.spec.ts index 0c124d18..70f03860 100644 --- a/packages/vue/__tests__/Transition.spec.ts +++ b/packages/vue/__tests__/Transition.spec.ts @@ -1799,7 +1799,41 @@ describe('e2e: Transition', () => { E2E_TIMEOUT ) - // fixme - test.todo('warn invalid durations') + test( + 'warn invalid durations', + async () => { + createApp({ + template: ` +
+ +
content
+
+
+ ` + }).mount(document.createElement('div')) + expect( + `[Vue warn]: explicit duration is NaN - ` + + 'the duration expression might be incorrect.' + ).toHaveBeenWarned() + + createApp({ + template: ` +
+ +
content
+
+
+ ` + }).mount(document.createElement('div')) + expect( + `[Vue warn]: explicit duration is not a valid number - ` + + `got ${JSON.stringify({})}` + ).toHaveBeenWarned() + }, + E2E_TIMEOUT + ) }) })