Skip to content

Commit

Permalink
Run state test on non-legacy boilerplate separately
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronlademann-wf committed Apr 18, 2024
1 parent a0900c1 commit cbe514f
Showing 1 changed file with 0 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,24 +72,6 @@ void main() {
@override
render() => null;
}
@Factory()
UiFactory<FooProps> FooLegacy = _$FooLegacy; // ignore: undefined_identifier
@Component()
class FooLegacyComponent extends UiStatefulComponent<FooProps, FooState> {
@override
getInitialState() => (newState()
..alreadyPatched = 'foo'
..initializedNullable = null
..initializedNonNullable = 2.1
..anotherInitializedNonNullable = 1.1
..initializedNonNullableFn = () {}
..initializedNonNullableList = []
);
@override
render() => null;
}
'''),
expectedOutput: withOverReactImport(/*language=dart*/ r'''
// ignore: undefined_identifier
Expand Down Expand Up @@ -123,24 +105,6 @@ void main() {
@override
render() => null;
}
@Factory()
UiFactory<FooProps> FooLegacy = _$FooLegacy; // ignore: undefined_identifier
@Component()
class FooLegacyComponent extends UiStatefulComponent<FooProps, FooState> {
@override
getInitialState() => (newState()
..alreadyPatched = 'foo'
..initializedNullable = null
..initializedNonNullable = 2.1
..anotherInitializedNonNullable = 1.1
..initializedNonNullableFn = () {}
..initializedNonNullableList = []
);
@override
render() => null;
}
'''),
);
});
Expand Down

0 comments on commit cbe514f

Please sign in to comment.