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 Feb 26, 2024. It is now read-only.
The issue now, I got Angular updated to RC4 this morning and I tried to import a service to some test such as:
import{it,inject,expect,async,addProviders,fakeAsync,tick}from'@angular/core/testing';import{UsersService}from'../../shared/services/users.service'describe('DEMO USER SERVICE UNIT TEST',()=>{beforeEach(()=>{addProviders([UsersService]);});it('Should Equal True',inject([UsersService],(service)=>{letdummy: boolean=true;expect(dummy).toBe(true);}));});
When I run the npm test, I get this:
01 07 2016 14:17:23.413:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/
01 07 2016 14:17:23.421:INFO [launcher]: Starting browser Chrome
01 07 2016 14:17:24.442:INFO [Chrome 51.0.2704 (Mac OS X 10.11.5)]: Connected on socket /#4suKVk9Ww8OZjzmCAAAA with id 27660481
01 07 2016 14:17:25.590:WARN [web-server]: 404: /base/node_modules/@angular/http
Directly followed by a missing error handler:
Missing error handler on `socket`.
TypeError: (msg ||"").replace is not a function
at /usr/local/var/projects/poc.dev/toplink/node_modules/karma/lib/reporter.js:45:23
at onBrowserError (/usr/local/var/projects/poc.dev/toplink/node_modules/karma/lib/reporters/base.js:58:60)
at null.<anonymous> (/usr/local/var/projects/poc.dev/toplink/node_modules/karma/lib/events.js:13:22)
at emitTwo (events.js:100:13)
at emit (events.js:185:7)
at onKarmaError (/usr/local/var/projects/poc.dev/toplink/node_modules/karma/lib/browser.js:95:13)
at Socket.<anonymous> (/usr/local/var/projects/poc.dev/toplink/node_modules/karma/lib/events.js:13:22)
at emitOne (events.js:95:20)
at Socket.emit (events.js:182:7)
at Socket.onevent (/usr/local/var/projects/poc.dev/toplink/node_modules/socket.io/lib/socket.js:335:8)
at Socket.onpacket (/usr/local/var/projects/poc.dev/toplink/node_modules/socket.io/lib/socket.js:295:12)
at Client.ondecoded (/usr/local/var/projects/poc.dev/toplink/node_modules/socket.io/lib/client.js:193:14)
at Decoder.Emitter.emit (/usr/local/var/projects/poc.dev/toplink/node_modules/component-emitter/index.js:134:20)
at Decoder.add (/usr/local/var/projects/poc.dev/toplink/node_modules/socket.io-parser/index.js:247:12)
at Client.ondata (/usr/local/var/projects/poc.dev/toplink/node_modules/socket.io/lib/client.js:175:18)
at emitOne (events.js:90:13)
01 07 2016 14:17:27.607:WARN [Chrome 51.0.2704 (Mac OS X 10.11.5)]: Disconnected (1 times)
Does anyone faced the same issue ? Or maybe I miss something...
Thank you.
M
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey there,
First of, thanks Julie for the good work.
The issue now, I got Angular updated to RC4 this morning and I tried to import a service to some test such as:
When I run the npm test, I get this:
01 07 2016 14:17:23.413:INFO [karma]: Karma v0.13.22 server started at http://localhost:9876/ 01 07 2016 14:17:23.421:INFO [launcher]: Starting browser Chrome 01 07 2016 14:17:24.442:INFO [Chrome 51.0.2704 (Mac OS X 10.11.5)]: Connected on socket /#4suKVk9Ww8OZjzmCAAAA with id 27660481 01 07 2016 14:17:25.590:WARN [web-server]: 404: /base/node_modules/@angular/http
Directly followed by a missing error handler:
Does anyone faced the same issue ? Or maybe I miss something...
Thank you.
M
The text was updated successfully, but these errors were encountered: