chore: improve BaseTransition (#4811)

This commit is contained in:
Che Guevara
2021-11-25 18:42:24 +08:00
committed by GitHub
parent 89c54ee2b9
commit 4e1131e251
2 changed files with 20 additions and 1 deletions

View File

@@ -1969,6 +1969,21 @@ describe('e2e: Transition', () => {
).toHaveBeenWarned()
})
test('warn when invalid transition mode', () => {
createApp({
template: `
<div id="container">
<transition name="test" mode="none">
<div class="test">content</div>
</transition>
</div>
`
}).mount(document.createElement('div'))
expect(
`invalid <transition> mode: none`
).toHaveBeenWarned()
})
// #3227
test(`HOC w/ merged hooks`, async () => {
const innerSpy = jest.fn()