Skip to content

Commit fb7833b

Browse files
committed
chore: unit tests missing impl
1 parent c0723d5 commit fb7833b

File tree

1 file changed

+9
-0
lines changed
  • TestRunner/app/tests/Infrastructure/Jasmine/jasmine-2.0.1

1 file changed

+9
-0
lines changed

TestRunner/app/tests/Infrastructure/Jasmine/jasmine-2.0.1/boot.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ var TerminalReporter = require('../jasmine-reporters/terminal_reporter').Termina
6363
return env.pending();
6464
},
6565

66+
fail: function(error) {
67+
// Jasmine 2.0 fail() – mark current spec as failed with given message
68+
var message = error;
69+
if (error && typeof error === 'object') {
70+
message = error.message || String(error);
71+
}
72+
throw new Error(message);
73+
},
74+
6675
spyOn: function(obj, methodName) {
6776
return env.spyOn(obj, methodName);
6877
},

0 commit comments

Comments
 (0)