Skip to content

Commit

Permalink
added trailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
escamoteur committed Jun 25, 2024
1 parent 98b7d28 commit 6de0844
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions test/get_it_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1056,12 +1056,15 @@ void main() {

expect(instance1 is TestClass, true);

expect(() {
getIt.changeTypeInstanceName<TestClass>(
instanceName: 'instanceName',
newInstanceName: 'instanceNameExisting',
);
}, throwsA(const TypeMatcher<StateError>()));
expect(
() {
getIt.changeTypeInstanceName<TestClass>(
instanceName: 'instanceName',
newInstanceName: 'instanceNameExisting',
);
},
throwsA(const TypeMatcher<StateError>()),
);
});

test('change registration name of instance', () async {
Expand Down

0 comments on commit 6de0844

Please sign in to comment.