Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 7b7c7e7

Browse files
vicbjbdeboer
authored andcommitted
test(watchGroup): fix incorrect expectations
watchGrp.detectChanges() returns the number of changes and as such can never be null
1 parent afd9477 commit 7b7c7e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/change_detection/watch_group_spec.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -770,12 +770,12 @@ void main() {
770770
);
771771
var watch = watchGrp.watch(ast, (v, p) => logger(v));
772772

773-
expect(watchGrp.detectChanges()).not.toBe(null);
773+
expect(watchGrp.detectChanges()).not.toBe(0);
774774
expect(logger).toEqual([-2]);
775775
logger.clear();
776776

777777
context['a'] = 2;
778-
expect(watchGrp.detectChanges()).not.toBe(null);
778+
expect(watchGrp.detectChanges()).not.toBe(0);
779779
expect(logger).toEqual([-3]);
780780
});
781781
});

0 commit comments

Comments
 (0)