Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
fix(jasmine): modify jasmine test ifEnvSupports message (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaLiPassion authored and mhevery committed Mar 21, 2017
1 parent 5c4e24d commit 5635ac0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/jasmine-patch.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@

import {ifEnvSupports} from './test-util';

ifEnvSupports(() => jasmine && (jasmine as any)['Spec'], () => {
function supportJasmineSpec() {
return jasmine && (jasmine as any)['Spec'];
}

(supportJasmineSpec as any).message = 'jasmine spec';

ifEnvSupports(supportJasmineSpec, () => {
beforeEach(() => {
// assert that each jasmine run has a task, so that drainMicrotask works properly.
expect(Zone.currentTask).toBeTruthy();
Expand Down

0 comments on commit 5635ac0

Please sign in to comment.