feat(test): added not.toBeNull
This commit is contained in:
parent
c8947d77bf
commit
74882c6c38
|
@ -114,6 +114,7 @@ class NotExpect extends gns.NotExpect {
|
||||||
|
|
||||||
void toEqual(expected) => toHaveSameProps(expected);
|
void toEqual(expected) => toHaveSameProps(expected);
|
||||||
void toBePromise() => _expect(actual is Future, equals(false));
|
void toBePromise() => _expect(actual is Future, equals(false));
|
||||||
|
void toBeNull() => _expect(actual == null, equals(false));
|
||||||
Function get _expect => gns.guinness.matchers.expect;
|
Function get _expect => gns.guinness.matchers.expect;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue