I had notice that if I write the expect expect(null).toBeDefined();
, the test will be passed, because the jasmine considers that null is a object difined but without any value.
My question is that if there is a matcher that evaluates if the object is diferent that undefined
and null
at the same time.