Skip to content

Commit 73a3fe8

Browse files
committed
test(watchGroup): fix incorrect expectations
watchGrp.detectChanges() returns the number of changes and as such can never be null
1 parent 862f46c commit 73a3fe8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/change_detection/watch_group_spec.dart

+2-2
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)