question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: 'null' is not an object (evaluating 'currentSpec.expect')

See original GitHub issue

Hi I’m using karma-jasmine v0.2.2. When my test files become bigger and bigger I get the following error:

PhantomJS 1.9.7 (Mac OS X) ERROR  
TypeError: 'null' is not an object (evaluating 'currentSpec.expect')  
at /Users/kentarowakayama/CODE/ANGULAR/fischer/node_modules/karma-jasmine/lib/jasmine.js:698

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
moslemezzaticommented, Mar 13, 2016

Thanks @moogleberry this my problem too 😆

0reactions
moogleberrycommented, Oct 21, 2015

I had this too; was using inject() in an it() statement without something to inject (no param)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: 'null' is not an object (evaluating 'currentSpec.expect ...
As my test suites grew large (over 1100 specs), I started getting the following error: 'null' is not an object (evaluating 'currentSpec.expect') during...
Read more >
How I Fixed: TypeError: 'null' is not an object (evaluating ...
How I Fixed: TypeError: 'null' is not an object (evaluating 'currentSpec.$injector'). I hit upon a problem in testing an Angular project this week...
Read more >
How to Fix TypeError: Null is Not an Object in JavaScript
The JavaScript error TypeError: null is not an object occurs when a property is accessed or a method is called on a null...
Read more >
'undefined' is not an object (evaluating 'currentSpec.queue ...
I am using karma + jasmine. Now thatI have tried one way of mocking a dependent factory I get this error: TypeError: 'undefined'...
Read more >
Problem with the LoadingScreen in MAC. TypeError null is not ...
TypeError null is not an object (evaluating 'formulario.loading.text = mensaje'). I have a problem because the project in windows build and tested in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found