mardi 24 janvier 2017

Jasmine has no access to file but Angular2 has?

Maybe my question is stupid but "my" Jasmine can't get access to:

project_dir/src/data.json

But angular has (I have directly access via http://localhost:4200/tabs.json and in program) In tests console (runned with 'ng test' with default configuration) I got error:

Chrome 55.0.2883 (Windows 10 0.0.0) ERROR Uncaught Response with status: 404 Not Found for URL: http://localhost:9876/tabs.json at webpack:///~/zone.js/dist/zone.js:155:0 <- src/test.ts:91060 Chrome 55.0.2883 (Windows 10 0.0.0): Executed 0 of 1 ERROR (0.445 secs / 0 secs)

Maybe there is something wrong with my spec's? I believe this is only a config matter.. I tried many dirs and "dots" in link to this file (./../ etc) but nothing works.

Aucun commentaire:

Enregistrer un commentaire