[Angular] Angular Test HTTP Failed 404

129 views
Skip to first unread message

jamester go

unread,
Aug 9, 2018, 10:20:42 PM8/9/18
to ang...@googlegroups.com
Hi guys

Im currently trying to worked with the Karma and Jasmine test but i am experiencing this kind of error.


this is my code below


Any help would be great

Sander Elias

unread,
Aug 10, 2018, 2:03:22 AM8/10/18
to Angular and AngularJS discussion
Your test is async, but you didn't tell jasmine, so the test is ended before the result is there.
add the async keyword to your test.

Regards
Sander

jamester go

unread,
Aug 12, 2018, 11:04:21 PM8/12/18
to ang...@googlegroups.com
Okey Thanks Sander let me do that also i have also this kind of error are you familiar with this

 This is my code below

 Thanks for answering

--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscribe@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

jamester go

unread,
Aug 13, 2018, 1:36:49 AM8/13/18
to ang...@googlegroups.com
Hi Sander i've included the Async in the beforeeach but the error 404 still persist , 

Sander Elias

unread,
Aug 13, 2018, 3:11:03 AM8/13/18
to Angular and AngularJS discussion
That is the idea of testing for 404's to begin with isn't it?
Reply all
Reply to author
Forward
0 new messages