@@ -115,7 +115,7 @@ describe('TestBed Component Tests', () => {
115
115
beforeEach ( async ( ) => {
116
116
await TestBed
117
117
. configureTestingModule ( {
118
- imports : [ BagModule ] ,
118
+ imports : [ BagModule ]
119
119
} )
120
120
// Compile everything in BagModule
121
121
. compileComponents ( )
@@ -323,7 +323,7 @@ describe('TestBed Component Tests', () => {
323
323
expect ( el . classes [ 'open' ] , 'open class' ) . to . be . false ;
324
324
325
325
expect ( el . styles [ 'color' ] ) . to . equal ( comp . color , 'color style' ) ;
326
- expect ( el . styles [ 'width' ] ) . to . equal ( comp . width + 'px' , 'width style' ) ;
326
+ expect ( el . styles [ 'width' ] ) . to . equal ( ` ${ comp . width } px` , 'width style' ) ;
327
327
328
328
// Removed on 12/02/2016 when ceased public discussion of the `Renderer`. Revive in future?
329
329
// expect(el.properties['customProperty'], 'customProperty').to.be.true;
@@ -338,7 +338,7 @@ describe('TestBed Component Overrides:', () => {
338
338
it ( 'should override ChildComp\'s template' , ( ) => {
339
339
340
340
const fixture = TestBed . configureTestingModule ( {
341
- declarations : [ Child1Component ] ,
341
+ declarations : [ Child1Component ]
342
342
} )
343
343
. overrideComponent ( Child1Component , {
344
344
set : { template : '<span>Fake</span>' }
@@ -352,11 +352,11 @@ describe('TestBed Component Overrides:', () => {
352
352
353
353
it ( 'should override TestProvidersComp\'s FancyService provider' , ( ) => {
354
354
const fixture = TestBed . configureTestingModule ( {
355
- declarations : [ TestProvidersComponent ] ,
355
+ declarations : [ TestProvidersComponent ]
356
356
} )
357
357
. overrideComponent ( TestProvidersComponent , {
358
358
remove : { providers : [ FancyService ] } ,
359
- add : { providers : [ { provide : FancyService , useClass : FakeFancyService } ] } ,
359
+ add : { providers : [ { provide : FancyService , useClass : FakeFancyService } ] }
360
360
361
361
// Or replace them all (this component has only one provider)
362
362
// set: { providers: [{ provide: FancyService, useClass: FakeFancyService }] },
@@ -376,7 +376,7 @@ describe('TestBed Component Overrides:', () => {
376
376
377
377
it ( 'should override TestViewProvidersComp\'s FancyService viewProvider' , ( ) => {
378
378
const fixture = TestBed . configureTestingModule ( {
379
- declarations : [ TestViewProvidersComponent ] ,
379
+ declarations : [ TestViewProvidersComponent ]
380
380
} )
381
381
. overrideComponent ( TestViewProvidersComponent , {
382
382
// remove: { viewProviders: [FancyService]},
@@ -430,7 +430,10 @@ describe('TestBed Component Overrides:', () => {
430
430
431
431
it ( 'can access template local variables as references' , ( ) => {
432
432
const fixture = TestBed . configureTestingModule ( {
433
- declarations : [ ShellComponent , NeedsContentComponent , Child1Component , Child2Component , Child3Component ] ,
433
+ declarations : [
434
+ ShellComponent , NeedsContentComponent , Child1Component ,
435
+ Child2Component , Child3Component
436
+ ]
434
437
} )
435
438
. overrideComponent ( ShellComponent , {
436
439
set : {
0 commit comments