From 05a27c5fb2aa48afbd8ef55920eb9f6801142487 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 11 Jul 2017 15:07:11 -0400 Subject: [PATCH] tidy up test --- .../component-binding-blowback-b/Nested.html | 3 ++- .../component-binding-blowback-b/_config.js | 22 +++++++++++++++---- .../component-binding-blowback-b/main.html | 1 - 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/test/runtime/samples/component-binding-blowback-b/Nested.html b/test/runtime/samples/component-binding-blowback-b/Nested.html index af2f9d0071..a1420a6916 100644 --- a/test/runtime/samples/component-binding-blowback-b/Nested.html +++ b/test/runtime/samples/component-binding-blowback-b/Nested.html @@ -6,7 +6,8 @@ const initialValues = { 'id-0': 'zero', 'id-1': 'one', - 'id-2': 'two' + 'id-2': 'two', + 'id-3': 'three' }; export default { diff --git a/test/runtime/samples/component-binding-blowback-b/_config.js b/test/runtime/samples/component-binding-blowback-b/_config.js index 5292eab4f2..ff6d14f20f 100644 --- a/test/runtime/samples/component-binding-blowback-b/_config.js +++ b/test/runtime/samples/component-binding-blowback-b/_config.js @@ -1,7 +1,10 @@ export default { - // solo: true, 'skip-ssr': true, + data: { + ids: ['id-0', 'id-1', 'id-2'] + }, + html: `
  1. id-0: value is zero
  2. @@ -10,7 +13,18 @@ export default {
`, - // test ( assert, component, target, window ) { - - // } + test (assert, component, target) { + component.set({ + ids: ['id-0', 'id-1', 'id-2', 'id-3'] + }); + + assert.htmlEqual(target.innerHTML, ` +
    +
  1. id-0: value is zero
  2. +
  3. id-1: value is one
  4. +
  5. id-2: value is two
  6. +
  7. id-3: value is three
  8. +
+ `); + } }; diff --git a/test/runtime/samples/component-binding-blowback-b/main.html b/test/runtime/samples/component-binding-blowback-b/main.html index 6d32bca342..bd2a7b3bc6 100644 --- a/test/runtime/samples/component-binding-blowback-b/main.html +++ b/test/runtime/samples/component-binding-blowback-b/main.html @@ -12,7 +12,6 @@ export default { data() { return { - ids: ['id-0', 'id-1', 'id-2'], idToValue: Object.create(null) }; },