Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sydneyjodon-wk committed Oct 15, 2024
1 parent 3f56e0c commit fe4c05b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/executables/required_props_collect_and_codemod_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,24 @@ mixin TestPrivateProps on UiProps {
String/*?*/ set20percent;
$noDataTodoComment
String/*?*/ set0percent;
}''')),
d.file('test_class_component_defaults.dart', contains('''
mixin TestPrivatePropsMixin on UiProps {
String/*?*/ notDefaultedOptional;
/*late*/ String notDefaultedAlwaysSet;
/*late*/ String/*?*/ defaultedNullable;
/*late*/ num/*!*/ defaultedNonNullable;
}
mixin SomeOtherPropsMixin on UiProps {
/*late*/ num/*!*/ anotherDefaultedNonNullable;
}''')),
d.file('test_class_component_defaults.dart', contains('''
mixin TestPublic2PropsMixin on UiProps {
String/*?*/ notDefaultedOptional;
/*late*/ String notDefaultedAlwaysSet;
String/*?*/ defaultedNullable;
num/*?*/ defaultedNonNullable;
}''')),
d.file('test_private_dynamic.dart', contains('''
// TODO(orcm.required_props): This codemod couldn't reliably determine requiredness for these props
Expand Down

0 comments on commit fe4c05b

Please sign in to comment.