feat(test_lib): support not.toBePromise() for Dart
This commit is contained in:
parent
41c61e5bc7
commit
e8bec99aa6
@ -38,6 +38,7 @@ class NotExpect extends gns.NotExpect {
|
||||
// TODO(tbosch) change back when https://github.com/vsavkin/guinness/issues/41 is fixed
|
||||
// void toEqual(expected) => toHaveSameProps(expected);
|
||||
void toEqual(expected) => _expect(actual, isNot(new FixedSamePropsMatcher(expected)));
|
||||
void toBePromise() => _expect(actual is Future, equals(false));
|
||||
Function get _expect => gns.guinness.matchers.expect;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user