Skip to content

Commit e4a4864

Browse files
committed
Fix jasmine deprecation warnings
1 parent c1cf1ad commit e4a4864

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

test/SpecRunner.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
/>
1111
<script src="../node_modules/jasmine-core/lib/jasmine-core/jasmine.js"></script>
1212
<script src="../node_modules/jasmine-core/lib/jasmine-core/jasmine-html.js"></script>
13-
<script src="../node_modules/jasmine-core/lib/jasmine-core/boot.js"></script>
13+
<script src="../node_modules/jasmine-core/lib/jasmine-core/boot0.js"></script>
14+
<script src="../node_modules/jasmine-core/lib/jasmine-core/boot1.js"></script>
1415
<script src="../node_modules/imagediff/imagediff.js"></script>
1516

1617
<!-- include source files here... -->

test/specs/ProxiesSpec.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ describe("XHR Proxies", function () {
9494
xhr.onload = function myOwnOnLoadHandler() {};
9595
xhr.send();
9696

97-
finishNotifyingXhrProxy.waitForRequestsToFinish().then(done);
97+
finishNotifyingXhrProxy
98+
.waitForRequestsToFinish()
99+
.then(function () {
100+
done();
101+
});
98102

99103
originalXHRInstance[0].mockDone();
100104

@@ -105,7 +109,11 @@ describe("XHR Proxies", function () {
105109
var finishNotifyingXhrProxy =
106110
proxies.finishNotifyingXhr(xhrMockConstructor);
107111

108-
finishNotifyingXhrProxy.waitForRequestsToFinish().then(done);
112+
finishNotifyingXhrProxy
113+
.waitForRequestsToFinish()
114+
.then(function () {
115+
done();
116+
});
109117
expect(true).toBe(true); // work around warning from jasmine that no expectation is given
110118
});
111119

@@ -117,7 +125,11 @@ describe("XHR Proxies", function () {
117125
xhr.send();
118126
originalXHRInstance[0].mockDone();
119127

120-
finishNotifyingXhrProxy.waitForRequestsToFinish().then(done);
128+
finishNotifyingXhrProxy
129+
.waitForRequestsToFinish()
130+
.then(function () {
131+
done();
132+
});
121133
expect(true).toBe(true); // work around warning from jasmine that no expectation is given
122134
});
123135
});

0 commit comments

Comments
 (0)