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

fix(jasmine): modify jasmine test ifEnvSupports message #689

Merged
merged 1 commit into from
Mar 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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