We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0723d5 commit fb7833bCopy full SHA for fb7833b
1 file changed
TestRunner/app/tests/Infrastructure/Jasmine/jasmine-2.0.1/boot.js
@@ -63,6 +63,15 @@ var TerminalReporter = require('../jasmine-reporters/terminal_reporter').Termina
63
return env.pending();
64
},
65
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
+
75
spyOn: function(obj, methodName) {
76
return env.spyOn(obj, methodName);
77
0 commit comments