Skip to content

Commit e8bec99

Browse files
committed
feat(test_lib): support not.toBePromise() for Dart
1 parent 41c61e5 commit e8bec99

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/angular2/src/test_lib/test_lib.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class NotExpect extends gns.NotExpect {
3838
// TODO(tbosch) change back when https://github.com/vsavkin/guinness/issues/41 is fixed
3939
// void toEqual(expected) => toHaveSameProps(expected);
4040
void toEqual(expected) => _expect(actual, isNot(new FixedSamePropsMatcher(expected)));
41+
void toBePromise() => _expect(actual is Future, equals(false));
4142
Function get _expect => gns.guinness.matchers.expect;
4243
}
4344

0 commit comments

Comments
 (0)