From 9d82aaafc00ec8ef719a1a286ea990edf13ca29d Mon Sep 17 00:00:00 2001 From: Tan Li Hau Date: Sun, 13 Oct 2019 00:13:51 +0800 Subject: [PATCH] fix test --- .../samples/each-block-scope-shadow-self/_config.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/test/runtime/samples/each-block-scope-shadow-self/_config.js b/test/runtime/samples/each-block-scope-shadow-self/_config.js index 2b1a525aba..1669dc5b6e 100644 --- a/test/runtime/samples/each-block-scope-shadow-self/_config.js +++ b/test/runtime/samples/each-block-scope-shadow-self/_config.js @@ -1,16 +1,12 @@ export default { - html: '', async test({ assert, component, target }) { + assert.equal(target.querySelectorAll('input').length, 3); + const input = target.querySelector('input'); input.value = 'svelte'; await input.dispatchEvent(new window.Event('input')); - assert.htmlEqual( - target.innerHTML, - ` - - ` - ); + assert.equal(target.querySelectorAll('input').length, 3); assert.deepEqual(component.data, { a: 'svelte', b: 'B', c: 'C' }); assert.deepEqual(component.x, ['a', 'b', 'c']); },