Skip to content

Commit e398faf

Browse files
committed
Fix expectation in test accessing private field.
1 parent 9724fea commit e398faf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dwds/test/evaluate_common.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,10 @@ void testAll({
362362
'instance._field',
363363
);
364364

365+
expect(result, matchInstanceRefKind('String'));
365366
expect(
366367
result,
367-
matchErrorRef(contains("The getter '_field' isn't defined")),
368+
matchInstanceRef(contains("NoSuchMethodError: '_field")),
368369
);
369370
});
370371
});

0 commit comments

Comments
 (0)