From f5381e4f5a2a33a4d8740ac8f4536826d2962ba5 Mon Sep 17 00:00:00 2001 From: neverland Date: Sun, 31 Jan 2021 17:07:40 +0800 Subject: [PATCH] test(CountDown): fix test warning (#8046) --- src/count-down/test/index.spec.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/count-down/test/index.spec.js b/src/count-down/test/index.spec.js index 17c5e27d7..8e2324398 100644 --- a/src/count-down/test/index.spec.js +++ b/src/count-down/test/index.spec.js @@ -1,4 +1,4 @@ -import { nextTick } from 'vue'; +import { KeepAlive, nextTick } from 'vue'; import CountDown from '..'; import { mount, later } from '../../../test'; @@ -178,11 +178,13 @@ test('should format S milliseconds correctly', () => { test('should pause counting when deactivated', async () => { const wrapper = mount({ - template: ` - - - - `, + render() { + return ( + + {this.render ? : null} + + ); + }, data() { return { render: true,