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

No error message for - TypeError: undefined is not a function (evaluating 'expect #526

Open
thebravoman opened this issue Jul 27, 2017 · 2 comments
Labels

Comments

@thebravoman
Copy link

Running the tests I get this error.

The problem is that I can not find a way to understand anything about this error. What is undefined? Why? Where is the error log (it is not in log/test.log). I would need some more information about this error because the result from loader.calculateRotation is defined. I can see it on the previous step, but then this occurs.

Failure/Error: TypeError: undefined is not a function (evaluating 'expect(loader.calculateRotation(module, 2)).toEquals([1,2,2])') in http://127.0.0.1:36150/assets/
@thebravoman
Copy link
Author

Uff, it is toEquals and not toEqual.

It is awful. Took me a lot of time to spot this s. Can I configure in any way for this to be reported as "there is no function toEquals" instead of "undefined is not a function"

?

@mathieujobin
Copy link
Collaborator

I don't know @thebravoman

this seems like a JS thing, maybe there is a way to catch the error and throw a more descriptive one.

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

No branches or pull requests

2 participants