You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should show error message in Error Object',()=>{console.log(newError('This should be displayed'));});
Expected behaviour
LOG: Error: This should be displayed
at <anonymous>:1:13
...
...
Actual behaviour
LOG: TypeError{}
Environment Details
Karma version (output of karma --version):
"karma": "^1.7.1",
"karma-chrome-launcher": "^2.2.0",
"karma-jasmine": "^1.1.0",
Relevant part of your karma.config.js file
Steps to reproduce the behaviour
1. Write code like below
it('Error message should be displayed',function(){console.log(newError('This should be displayed'));});
2. run karma test
$ karma start
When you log in normal nodejs app
// shouldbe.jsconsole.log(newTypeError('This should be displayed'));
Got this.
TypeError: This should be displayed
at Object.<anonymous> (/Users/haseok/workspace/karma-test/expected.js:1:75)
at Module._compile (module.js:612:30)
at Object.Module._extensions..js (module.js:623:10)
at Module.load (module.js:531:32)
at tryModuleLoad (module.js:494:12)
at Function.Module._load (module.js:486:3)
at Function.Module.runMain (module.js:653:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
The text was updated successfully, but these errors were encountered:
When
Expected behaviour
Actual behaviour
Environment Details
Karma version (output of
karma --version
):"karma": "^1.7.1",
"karma-chrome-launcher": "^2.2.0",
"karma-jasmine": "^1.1.0",
Relevant part of your
karma.config.js
fileSteps to reproduce the behaviour
1. Write code like below
2. run karma test
When you log in normal nodejs app
Got this.
The text was updated successfully, but these errors were encountered: