Skip to content

Commit 1280b19

Browse files
committed
chore: clang-format
1 parent eea8277 commit 1280b19

File tree

3 files changed

+244
-241
lines changed

3 files changed

+244
-241
lines changed

modules/angular2/test/core/linker/change_detection_integration_spec.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -924,18 +924,22 @@ export function main() {
924924
}));
925925

926926
it('should be called after processing the content and view children', fakeAsync(() => {
927-
var ctx = createCompFixture(
928-
'<div testDirective="parent"><div *ngFor="var x of [0,1]" testDirective="contentChild{{x}}"></div>' +
929-
'<other-cmp></other-cmp></div>',
930-
TestComponent,
931-
tcb.overrideTemplate(AnotherComponent, '<div testDirective="viewChild"></div>'));
927+
var ctx = createCompFixture(
928+
'<div testDirective="parent"><div *ngFor="var x of [0,1]" testDirective="contentChild{{x}}"></div>' +
929+
'<other-cmp></other-cmp></div>',
930+
TestComponent,
931+
tcb.overrideTemplate(AnotherComponent, '<div testDirective="viewChild"></div>'));
932932

933933
ctx.detectChanges(false);
934934
ctx.destroy();
935935

936936
expect(directiveLog.filter(['ngOnDestroy']))
937-
.toEqual(
938-
['contentChild0.ngOnDestroy', 'contentChild1.ngOnDestroy', 'viewChild.ngOnDestroy', 'parent.ngOnDestroy']);
937+
.toEqual([
938+
'contentChild0.ngOnDestroy',
939+
'contentChild1.ngOnDestroy',
940+
'viewChild.ngOnDestroy',
941+
'parent.ngOnDestroy'
942+
]);
939943
}));
940944

941945
it('should be called in reverse order so the child is always notified before the parent',

modules/angular2/test/core/linker/integration_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ function declareTests(isJit: boolean) {
507507
fixture.detectChanges();
508508

509509
var ngIfEl = fixture.debugElement.children[0];
510-
var someViewport:SomeViewport = ngIfEl.childNodes[0].inject(SomeViewport);
510+
var someViewport: SomeViewport = ngIfEl.childNodes[0].inject(SomeViewport);
511511
expect(someViewport.container.length).toBe(2);
512512
expect(ngIfEl.children.length).toBe(2);
513513

0 commit comments

Comments
 (0)