diff --git a/modules/angular2/src/test_lib/test_lib.dart b/modules/angular2/src/test_lib/test_lib.dart index c0e2466040..043e5d6e8b 100644 --- a/modules/angular2/src/test_lib/test_lib.dart +++ b/modules/angular2/src/test_lib/test_lib.dart @@ -114,6 +114,7 @@ class NotExpect extends gns.NotExpect { void toEqual(expected) => toHaveSameProps(expected); void toBePromise() => _expect(actual is Future, equals(false)); + void toBeNull() => _expect(actual == null, equals(false)); Function get _expect => gns.guinness.matchers.expect; }