@@ -26,7 +26,13 @@ import components from '@tko/utils.component'
2626
2727import { expect } from 'chai'
2828import sinon from 'sinon'
29- import { expectContainHtml , expectContainText , prepareTestNode , restoreAfter , useMockForTasks } from '../../utils/helpers/mocha-test-helpers'
29+ import {
30+ expectContainHtml ,
31+ expectContainText ,
32+ prepareTestNode ,
33+ restoreAfter ,
34+ useMockForTasks
35+ } from '../../utils/helpers/mocha-test-helpers'
3036
3137describe ( 'Components: Component binding' , function ( ) {
3238 let testComponentName = 'test-component' ,
@@ -100,9 +106,7 @@ describe('Components: Component binding', function () {
100106 testNode . innerHTML = '<div data-bind="if: true, component: $data"></div>'
101107 expect ( function ( ) {
102108 applyBindings ( testComponentName , testNode )
103- } ) . to . throw (
104- 'Multiple bindings (if and component) are trying to control descendant bindings of the same element.'
105- )
109+ } ) . to . throw ( 'Multiple bindings (if and component) are trying to control descendant bindings of the same element.' )
106110
107111 // Even though applyBindings threw an exception, the component still gets bound (asynchronously)
108112 clock . tick ( 1 )
@@ -241,7 +245,8 @@ describe('Components: Component binding', function () {
241245 applyBindings ( outerViewModel , testNode )
242246 clock . tick ( 1 )
243247
244- expectContainHtml ( testNode . children [ 0 ] ,
248+ expectContainHtml (
249+ testNode . children [ 0 ] ,
245250 'start<span data-bind="template: { nodes: $componenttemplatenodes }"><em>original</em> child nodes</span>end'
246251 )
247252 } )
@@ -274,7 +279,8 @@ describe('Components: Component binding', function () {
274279 applyBindings ( outerViewModel , testNode )
275280 clock . tick ( 1 )
276281
277- expectContainText ( testNode . children [ 0 ] ,
282+ expectContainText (
283+ testNode . children [ 0 ] ,
278284 'In child context 123, inside component with property 456. Now in sub-component with property 789.' ,
279285 /* ignoreSpaces */ true
280286 ) // Ignore spaces because old-IE is inconsistent
@@ -1383,7 +1389,9 @@ describe('Components: Component binding', function () {
13831389 )
13841390
13851391 arr ( [ ] )
1386- expect ( testNode . innerHTML ) . to . deep . equal ( `<test-component><div><!--ko slot: "X"--><!--/ko--></div></test-component>` )
1392+ expect ( testNode . innerHTML ) . to . deep . equal (
1393+ `<test-component><div><!--ko slot: "X"--><!--/ko--></div></test-component>`
1394+ )
13871395 } )
13881396
13891397 it ( 'respects observable array changes with JSX' , function ( ) {
0 commit comments