karma-jasmine icon indicating copy to clipboard operation
karma-jasmine copied to clipboard

Duplicate error messages (reopen)

Open top-master opened this issue 2 years ago • 0 comments

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 (but jasmine.pp(...) works, as it has no line-fade).

top-master avatar Mar 23 '22 13:03 top-master