Skip to content

Commit af043a0

Browse files
committed
Replace double-quotes with single quotes
1 parent 034e6c1 commit af043a0

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

example/build_extensions/example.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ import 'package:test_api/scaffolding.dart';
2121
import 'mocks/example.mocks.dart';
2222

2323
class Dog {
24-
String sound() => "bark";
24+
String sound() => 'bark';
2525
bool? eatFood(String? food) => true;
2626
Future<void> chew() async => print('Chewing...');
2727
int? walk(List<String>? places) => 1;
2828
}
2929

3030
@GenerateNiceMocks([MockSpec<Dog>()])
3131
void main() {
32-
test("Verify some dog behaviour", () async {
32+
test('Verify some dog behaviour', () async {
3333
MockDog mockDog = MockDog();
3434
when(mockDog.eatFood(any));
3535

36-
mockDog.eatFood("biscuits");
36+
mockDog.eatFood('biscuits');
3737

3838
verify(mockDog.eatFood(any)).called(1);
3939
});

test/builder/auto_mocks_test.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3679,7 +3679,7 @@ void main() {
36793679
}
36803680
''',
36813681
}, config: {
3682-
"build_extensions": {"^test/{{}}.dart": "test/mocks/{{}}.mocks.dart"}
3682+
'build_extensions': {'^test/{{}}.dart': 'test/mocks/{{}}.mocks.dart'}
36833683
});
36843684
final mocksAsset = AssetId('foo', 'test/mocks/foo_test.mocks.dart');
36853685
final mocksContent = utf8.decode(writer.assets[mocksAsset]!);
@@ -3703,9 +3703,9 @@ void main() {
37033703
}
37043704
''',
37053705
}, config: {
3706-
"build_extensions": {
3707-
"^test/{{}}.dart": "test/mocks/{{}}.mocks.dart",
3708-
"test/{{}}.dart": "test/{{}}.something.mocks.dart"
3706+
'build_extensions': {
3707+
'^test/{{}}.dart': 'test/mocks/{{}}.mocks.dart',
3708+
'test/{{}}.dart': 'test/{{}}.something.mocks.dart'
37093709
}
37103710
}),
37113711
throwsArgumentError);
@@ -3735,7 +3735,7 @@ void main() {
37353735
}
37363736
''',
37373737
}, config: {
3738-
"build_extensions": {"^test/{{}}": "test/mocks/{{}}.mocks.dart"}
3738+
'build_extensions': {'^test/{{}}': 'test/mocks/{{}}.mocks.dart'}
37393739
}),
37403740
throwsArgumentError);
37413741
final mocksAsset = AssetId('foo', 'test/mocks/foo_test.mocks.dart');
@@ -3761,7 +3761,7 @@ void main() {
37613761
}
37623762
''',
37633763
}, config: {
3764-
"build_extensions": {"^test/{{}}.dart": "test/mocks/{{}}.g.dart"}
3764+
'build_extensions': {'^test/{{}}.dart': 'test/mocks/{{}}.g.dart'}
37653765
}),
37663766
throwsArgumentError);
37673767
final mocksAsset = AssetId('foo', 'test/mocks/foo_test.mocks.dart');

0 commit comments

Comments
 (0)