karma-jasmine
karma-jasmine copied to clipboard
Duplicate error messages (reopen)
https://github.com/karma-runner/karma-jasmine/issues/60
Above closed-issue is not fixed yet, at least not correctly.
For example, my context contains JSON
, which causes both the error and the JSON to get duplicated in the logs.
expect(window.MyGlobalVariable)
.withContext('Was not in global var: ' + JSON.stringify(window.jQuery, null, 2))
.toEqual(jasmine.objectContaining({
'my/tested/key': jasmine.objectContaining({
default: jasmine.anything()
})
}));
Update; seems is line-fade related, because
jasmine.pp(...) + '\ntest'
does not work (butjasmine.pp(...)
works, as it has no line-fade).