From 875d84e9677aed6f5bbd1767784a9b42de4d170e Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Mon, 27 Feb 2017 14:25:28 -0500 Subject: [PATCH] fix tests --- .../component-binding-each-nested/_config.js | 12 +++--------- test/generator/component-binding-each/_config.js | 10 ++-------- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/test/generator/component-binding-each-nested/_config.js b/test/generator/component-binding-each-nested/_config.js index c25c9cf803..aa3559d777 100644 --- a/test/generator/component-binding-each-nested/_config.js +++ b/test/generator/component-binding-each-nested/_config.js @@ -1,9 +1,6 @@ export default { html: ` - - - - +

foo, bar, baz

`, @@ -14,12 +11,9 @@ export default { inputs[0].value = 'blah'; inputs[0].dispatchEvent( change ); - assert.deepEqual( component.get( 'a' ), [ 'blah', 'bar', 'baz' ] ); + assert.deepEqual( component.get( 'a' ), [{ name: 'blah' }, { name: 'bar' }, { name: 'baz' }] ); assert.htmlEqual( target.innerHTML, ` - - - - +

blah, bar, baz

` ); diff --git a/test/generator/component-binding-each/_config.js b/test/generator/component-binding-each/_config.js index c25c9cf803..550e46da05 100644 --- a/test/generator/component-binding-each/_config.js +++ b/test/generator/component-binding-each/_config.js @@ -1,9 +1,6 @@ export default { html: ` - - - - +

foo, bar, baz

`, @@ -16,10 +13,7 @@ export default { assert.deepEqual( component.get( 'a' ), [ 'blah', 'bar', 'baz' ] ); assert.htmlEqual( target.innerHTML, ` - - - - +

blah, bar, baz

` );