Skip to content

Commit 2b8b0d4

Browse files
author
Eric Wendelin
committed
Omit an assertion from IE9- that cannot be satisfied.
1 parent 8e0fb68 commit 2b8b0d4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

spec/stacktrace-spec.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ describe('StackTrace', function () {
152152
runs(function() {
153153
expect(errback).not.toHaveBeenCalled();
154154
expect(callback).toHaveBeenCalled();
155-
expect(callback.mostRecentCall.args[0][0].fileName).toMatch('stacktrace-spec.js');
155+
if (callback.mostRecentCall.args[0][0].fileName) { // Work around IE9-
156+
expect(callback.mostRecentCall.args[0][0].fileName).toMatch('stacktrace-spec.js');
157+
}
156158
});
157159
});
158160

@@ -168,7 +170,9 @@ describe('StackTrace', function () {
168170
runs(function() {
169171
expect(errback).not.toHaveBeenCalled();
170172
expect(callback).toHaveBeenCalled();
171-
expect(callback.mostRecentCall.args[0][0].fileName).toMatch('stacktrace-spec.js');
173+
if (callback.mostRecentCall.args[0][0].fileName) { // Work around IE9-
174+
expect(callback.mostRecentCall.args[0][0].fileName).toMatch('stacktrace-spec.js');
175+
}
172176
});
173177
});
174178

0 commit comments

Comments
 (0)