From f3b8885f140a6cbef448ceaa5f6e82f282a6f75b Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Mon, 6 Mar 2017 20:20:10 -0800 Subject: [PATCH] chore: fix formatting --- lib/jasmine/jasmine.ts | 8 ++++---- test/jasmine-patch.spec.ts | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/jasmine/jasmine.ts b/lib/jasmine/jasmine.ts index 9105cc114..f3db62d5c 100644 --- a/lib/jasmine/jasmine.ts +++ b/lib/jasmine/jasmine.ts @@ -90,10 +90,10 @@ // Note we have to make a function with correct number of arguments, otherwise jasmine will // think that all functions are sync or async. return testBody && (testBody.length ? function(done) { - return testProxyZone.run(testBody, this, [done]); - } : function() { - return testProxyZone.run(testBody, this); - }); + return testProxyZone.run(testBody, this, [done]); + } : function() { + return testProxyZone.run(testBody, this); + }); } interface QueueRunner { execute(): void; diff --git a/test/jasmine-patch.spec.ts b/test/jasmine-patch.spec.ts index cbbd525ef..5e5aa7309 100644 --- a/test/jasmine-patch.spec.ts +++ b/test/jasmine-patch.spec.ts @@ -1,4 +1,3 @@ -import {ifEnvSupports} from './test-util'; /** * @license * Copyright Google Inc. All Rights Reserved. @@ -7,6 +6,8 @@ import {ifEnvSupports} from './test-util'; * found in the LICENSE file at https://angular.io/license */ +import {ifEnvSupports} from './test-util'; + ifEnvSupports(() => jasmine && jasmine['Spec'], () => { beforeEach(() => { // assert that each jasmine run has a task, so that drainMicrotask works properly.