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
{{ message }}
This repository has been archived by the owner on Dec 28, 2023. It is now read-only.
When the assertion raises message with multiline strings in the stacktrace this message is duplicated.
For instance consider the following code snippet:
describe('an exmaple',function(){it('throws',function(){// works finethrownewError('foo');});it('throws',function(){// message will be duplicatedthrownewError('foo\nbar');});});
for the first example I have nice error message:
PhantomJS 1.9.7 (Linux) Module chaiMatchers karma-mocha blows FAILED
Error: foo
at /home/lucassus/Projects/OpenSource/glossary/test/client/spec/chaiMatchersSpec.js:73
at callFn (/home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4338)
at /home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4331
at /home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4728
at /home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4819
at next (/home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4653)
at /home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4663
at next (/home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4601)
at /home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4630
at timeslice (/home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:5763)
but when I'm trying to ouptup multiline message I get:
PhantomJS 1.9.7 (Linux) Module chaiMatchers karma-mocha blows FAILED
foo
bar
Error: foo
bar
at /home/lucassus/Projects/OpenSource/glossary/test/client/spec/chaiMatchersSpec.js:77
at callFn (/home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4338)
at /home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4331
at /home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4728
at /home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4819
at next (/home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4653)
at /home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4663
at next (/home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4601)
at /home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:4630
at timeslice (/home/lucassus/Projects/OpenSource/glossary/node_modules/mocha/mocha.js:5763)
I have simillar results google-chrome, on firefox I don't see duplicated messagtes.
This problem affects also tests with $httpBackend, for example:
PhantomJS 1.9.7 (Linux) Controller: list.FormCtrl #submit() when the list is persisted does the magic FAILED
Expected PUT /api/lists/123 with different data
EXPECTED: {"foo":"bar"}
GOT: {"_id":123,"name":"New List Name"}
Error: Expected PUT /api/lists/123 with different data
EXPECTED: {"foo":"bar"}
GOT: {"_id":123,"name":"New List Name"}
On bare mocha everything works fine. I guess it could be related with #16
The text was updated successfully, but these errors were encountered:
When the assertion raises message with multiline strings in the stacktrace this message is duplicated.
For instance consider the following code snippet:
for the first example I have nice error message:
but when I'm trying to ouptup multiline message I get:
I have simillar results google-chrome, on firefox I don't see duplicated messagtes.
This problem affects also tests with
$httpBackend
, for example:On bare mocha everything works fine. I guess it could be related with #16
The text was updated successfully, but these errors were encountered: