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

Commit 5635ac0

Browse files
JiaLiPassionmhevery
authored andcommitted
fix(jasmine): modify jasmine test ifEnvSupports message (#689)
1 parent 5c4e24d commit 5635ac0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/jasmine-patch.spec.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@
88

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

11-
ifEnvSupports(() => jasmine && (jasmine as any)['Spec'], () => {
11+
function supportJasmineSpec() {
12+
return jasmine && (jasmine as any)['Spec'];
13+
}
14+
15+
(supportJasmineSpec as any).message = 'jasmine spec';
16+
17+
ifEnvSupports(supportJasmineSpec, () => {
1218
beforeEach(() => {
1319
// assert that each jasmine run has a task, so that drainMicrotask works properly.
1420
expect(Zone.currentTask).toBeTruthy();

0 commit comments

Comments
 (0)