Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Jasmine .not is not working? #154

Closed
wakandan opened this issue Oct 9, 2013 · 2 comments
Closed

Jasmine .not is not working? #154

wakandan opened this issue Oct 9, 2013 · 2 comments

Comments

@wakandan
Copy link

wakandan commented Oct 9, 2013

In one of my test I was trying to test if a string is NOT empty, so I do
expect(myString).not.toBe('')
and it doesn't work because not is not defined. Is it supposed to be the way it works or I'm missing something here? Another way I tried was
expect(myString).toBeTruthy()
but the log message doesn't seems like toBeTruthy() was something valid either...

@Douwe92
Copy link

Douwe92 commented Oct 9, 2013

expect(myString)toEqual('').toBe(false) ?

@juliemr
Copy link
Member

juliemr commented Oct 9, 2013

Correct, it's not working. Duplicate of #139.

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

No branches or pull requests

3 participants