Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error with jasmine.Matchers.prototype when running tests #9

Closed
facultymatt opened this issue Feb 6, 2014 · 6 comments
Closed

Comments

@facultymatt
Copy link

I'm getting the following error when running the tests. The tests still pass (maybe its a warning?) however the console reports:

>> TypeError: 'undefined' is not an object (evaluating 'jasmine.Matchers.prototype') at
>> spec/javascripts/libs/jasmine-jquery.js:260 
>> spec/javascripts/libs/jasmine-jquery.js:283 
>> spec/javascripts/libs/jasmine-jquery.js:285 
>> TypeError: 'undefined' is not an object (evaluating 'jasmine.Matchers.prototype') at
>> spec/javascripts/libs/jasmine-jquery.js:260 
>> spec/javascripts/libs/jasmine-jquery.js:283 
>> spec/javascripts/libs/jasmine-jquery.js:285 
@matthieua
Copy link
Member

hmm I think jasmine-jquery to needs to updated to the latest version.

@matthieua
Copy link
Member

It's now fixed :) ff0bb24

@Giriraj24
Copy link

Hi Matthieua, How did this issue got resolved.
I am getting following error, while running the test cases.

INFO [karma]: Karma v0.12.25 server started at http://localhost:9876/
INFO [launcher]: Starting browser PhantomJS
INFO [PhantomJS 1.9.8 (Linux)]: Connected on socket kSYyP06B9tqrrUHFi3Ib with id 11639987
PhantomJS 1.9.8 (Linux) ERROR
TypeError: 'undefined' is not an object (evaluating 'jasmine.Matchers.prototype')
at /apps/devops/jenkins/home/jobs/UIMod-Jasmine-Karma/workspace/WebContent/test/javascript/libs/jasmine-1.3.0/jasmine-jquery.js:463

It does not run any test cases but throws the errors. Any idea?

@matthieua
Copy link
Member

I updated Jasmine-jQuery. I just tested it, it seems to work fine.

@Giriraj24
Copy link

Hi Matthieua,

Thanks for replying. One last question, so you updated "Jasmine-jQuery" in the code base? or in Karma, like updating a module in karma using npm?

Thanks,
Giriraj

@matthieua
Copy link
Member

yes, in the code directly in the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants