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 was archived by the owner on Feb 26, 2024. It is now read-only.
Hi there I've been having issues with npm test, Karma unit tests, on the step-2.
Anyone knows why?
The following is the error-log:
INFO [karma]: Karma v0.12.37 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 50.0.2661 (Windows 10 0.0.0)]: Connected on socket wGn9Y8QeTAPEkhAocJiU with id 80523642
ERROR [karma]: [TypeError: The header content contains invalid characters]
TypeError: The header content contains invalid characters
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:348:11)
at ServerResponse.res.setHeader (C:\Users\jshin\Dropbox\Dev\workspace\Angular\angular-phonecat\node_modules\connect\lib\patch.js:134:22)
at Object.setNoCacheHeaders (C:\Users\jshin\Dropbox\Dev\workspace\Angular\angular-phonecat\node_modules\karma\lib\middleware\common.js:76:12)
at C:\Users\jshin\Dropbox\Dev\workspace\Angular\angular-phonecat\node_modules\karma\lib\middleware\karma.js:109:18
at C:\Users\jshin\Dropbox\Dev\workspace\Angular\angular-phonecat\node_modules\karma\lib\middleware\common.js:63:35
at FSReqWrap.readFileAfterClose as oncomplete
npm ERR! Test failed. See above for more details.
The text was updated successfully, but these errors were encountered:
This must be related to outdated dependencies. Try updating http-server (see #322 (comment)).
There is already a PR for updating all dependencies (and the tutorial itself).
You might also try updating karma. I think that one was causing that error (possibly because of using http-server under the hood). BTW, you can take a look at the pending PR: #326
Hi there I've been having issues with npm test, Karma unit tests, on the step-2.
Anyone knows why?
The following is the error-log:
INFO [karma]: Karma v0.12.37 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 50.0.2661 (Windows 10 0.0.0)]: Connected on socket wGn9Y8QeTAPEkhAocJiU with id 80523642
ERROR [karma]: [TypeError: The header content contains invalid characters]
TypeError: The header content contains invalid characters
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:348:11)
at ServerResponse.res.setHeader (C:\Users\jshin\Dropbox\Dev\workspace\Angular\angular-phonecat\node_modules\connect\lib\patch.js:134:22)
at Object.setNoCacheHeaders (C:\Users\jshin\Dropbox\Dev\workspace\Angular\angular-phonecat\node_modules\karma\lib\middleware\common.js:76:12)
at C:\Users\jshin\Dropbox\Dev\workspace\Angular\angular-phonecat\node_modules\karma\lib\middleware\karma.js:109:18
at C:\Users\jshin\Dropbox\Dev\workspace\Angular\angular-phonecat\node_modules\karma\lib\middleware\common.js:63:35
at FSReqWrap.readFileAfterClose as oncomplete
npm ERR! Test failed. See above for more details.
The text was updated successfully, but these errors were encountered: