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

Commit aca8a0b

Browse files
committed
fix(jasmine): Pass control flow to Jasminewd.
Fixes #3505 and 2790.
1 parent 30102fb commit aca8a0b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/frameworks/jasmine.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var q = require('q');
2+
var webdriver = require('selenium-webdriver');
23

34
var RunnerReporter = function(emitter) {
45
this.emitter = emitter;
@@ -62,7 +63,7 @@ exports.run = function(runner, specs) {
6263
var jrunner = new JasmineRunner();
6364
/* global jasmine */
6465

65-
require('jasminewd2');
66+
require('jasminewd2').init(webdriver.promise.controlFlow());
6667

6768
var jasmineNodeOpts = runner.getConfig().jasmineNodeOpts;
6869

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"chalk": "^1.1.3",
1717
"glob": "^7.0.3",
1818
"jasmine": "2.4.1",
19-
"jasminewd2": "0.0.9",
19+
"jasminewd2": "0.0.10",
2020
"optimist": "~0.6.0",
2121
"q": "1.4.1",
2222
"saucelabs": "~1.3.0",

0 commit comments

Comments
 (0)