Skip to content

Commit

Permalink
fixing lints
Browse files Browse the repository at this point in the history
  • Loading branch information
escamoteur committed May 26, 2024
1 parent 5e2c672 commit 316f1c4
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions test/get_it_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -811,12 +811,15 @@ void main() {

expect(instance1 is TestClass, true);

final instance2 = getIt.registerSingletonIfAbsent<TestClass>(() {
assert(false, 'This should not be called');
return TestClass();
}, dispose: (param) {
assert(false, 'This should not be called');
});
final instance2 = getIt.registerSingletonIfAbsent<TestClass>(
() {
assert(false, 'This should not be called');
return TestClass();
},
dispose: (param) {
assert(false, 'This should not be called');
},
);

expect(instance1, instance2);

Expand Down Expand Up @@ -849,12 +852,15 @@ void main() {

expect(instance1 is TestClass, true);

final instance2 = getIt.registerSingletonIfAbsent<TestClass>(() {
assert(false, 'This should not be called');
return TestClass();
}, dispose: (param) {
assert(false, 'This should not be called');
});
final instance2 = getIt.registerSingletonIfAbsent<TestClass>(
() {
assert(false, 'This should not be called');
return TestClass();
},
dispose: (param) {
assert(false, 'This should not be called');
},
);

expect(instance1, instance2);

Expand Down

0 comments on commit 316f1c4

Please sign in to comment.