I\'m very new in javascript testing, I would like to know how to assert not null in Mocha framework.
This is what worked for me (using Expect library with Mocha):
expect(myObject).toExist('Too bad when it does not.');