• Register
0 votes
1.6k views

Problem :

I am facing following Jasmine issue and looking for solution:

async callback was not invoked within timeout specified by jasmine.default_timeout_interval.

6 5 3
6,930 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

The issue comes up if following condion is met :

var service;
beforeEach(function(_TestService_) {
    service = _TestService_;
});

To fix the issue just wrap the function with inject to properly retrieve the service:

var service;
beforeEach(inject(function(_TestService_) {
    service = _TestService_;
}));
9 7 4
38,600 points

Related questions

0 votes
1 answer 17 views
17 views
Problem: I am facing following Jasmine issue and looking for solution: async callback was not invoked within timeout specified by jasmine.default_timeout_interval.
asked Mar 14 Wafa Abu Yousef 6.1k points
0 votes
1 answer 3 views
3 views
Problem: I need help with this : Internal exception io netty handler timeout readtimeoutexception .
asked Mar 20 PkGuy 13.1k points
0 votes
1 answer 1.4K views
1.4K views
Problem : Currently I am trying to unit test while developing the simple web with AngularJS + Firebase, but I have the problem defining my spec and trying a test runner My Error: PhantomJS 2.1.1 (Mac OS X 0.0.0) Controller: MainCtrl should.... FAILED Error: [$injector: ... }) But now I am unable to know why this error is occurring. Please let me know how to fix the above error in short time?
asked Jan 24, 2020 jwilliam 3.9k points
0 votes
1 answer 11 views
11 views
Help me by solving this problem.
asked Dec 19, 2020 TeamScript 13.5k points
0 votes
1 answer 8 views
8 views
Problem: How to fix this issue: An established connection was aborted by the software in your host machine minecraft
asked Mar 14 Wafa Abu Yousef 6.1k points
0 votes
2 answers 1.7K views
1.7K views
Problem : I am facing following error for the Stack: AngularJS v1.6.5, java 8, spring boot, tomcat. After about around 1 week of work, my application is not responding but giving me such an error. Why is this happening to me? My ... org.springframework.http.converter.ResourceHttpMessageConverter.writeInternal(ResourceHttpMessageConverter.java:200) ~[spring-web-4.3.9.RELEASE.jar:4.3.9.RELEASE] ...
asked Dec 10, 2019 alecxe 7.5k points
1 vote
1 answer 478 views
478 views
Problem: I have very recently started understanding salesforce. I want to catch the exception which gets thrown in my @myfuture mymethod nevertheless my test mymethod is unable to detecting it. Please find below my class under test for your reference: public with ... Mymethods defined as TestMymethod do not support Web service callouts, test skipped Please help me in unit testing my above code.
asked May 29, 2020 Martin K 6.6k points
1 vote
1 answer 369 views
369 views
Problem : I am beginner to Angular Js. I am trying to learn the AngularJS. Below is my code from my controllers.js file. 'use strict'; angular.module ( 'F1FeederApp.controllers' , [ ] ) .controller ( 'driversController' , function ( $myscope , myergastAPIservice ) ... url not allowed by $sceDelegate policy” I am unable to figure out the cause of this error. Can someone guide me in fixing it?
asked Mar 27, 2020 morrisBson 3.2k points
0 votes
1 answer 49 views
49 views
Problem: invalid setup on a non-virtual (overridable in vb) member.
asked Feb 23 Dan phillip 4.7k points
0 votes
1 answer 26 views
26 views
Problem:- hey, we are working on a student portal system and we need to test it.As we don't have professional QA So we would like to adopt QA responsibilities and skills.
asked Oct 2, 2020 SapperIt 1.2k points