File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -21,19 +21,19 @@ import 'package:test_api/scaffolding.dart';
21
21
import 'mocks/example.mocks.dart' ;
22
22
23
23
class Dog {
24
- String sound () => " bark" ;
24
+ String sound () => ' bark' ;
25
25
bool ? eatFood (String ? food) => true ;
26
26
Future <void > chew () async => print ('Chewing...' );
27
27
int ? walk (List <String >? places) => 1 ;
28
28
}
29
29
30
30
@GenerateNiceMocks ([MockSpec <Dog >()])
31
31
void main () {
32
- test (" Verify some dog behaviour" , () async {
32
+ test (' Verify some dog behaviour' , () async {
33
33
MockDog mockDog = MockDog ();
34
34
when (mockDog.eatFood (any));
35
35
36
- mockDog.eatFood (" biscuits" );
36
+ mockDog.eatFood (' biscuits' );
37
37
38
38
verify (mockDog.eatFood (any)).called (1 );
39
39
});
Original file line number Diff line number Diff line change @@ -3679,7 +3679,7 @@ void main() {
3679
3679
}
3680
3680
''' ,
3681
3681
}, config: {
3682
- " build_extensions" : {" ^test/{{}}.dart" : " test/mocks/{{}}.mocks.dart" }
3682
+ ' build_extensions' : {' ^test/{{}}.dart' : ' test/mocks/{{}}.mocks.dart' }
3683
3683
});
3684
3684
final mocksAsset = AssetId ('foo' , 'test/mocks/foo_test.mocks.dart' );
3685
3685
final mocksContent = utf8.decode (writer.assets[mocksAsset]! );
@@ -3703,9 +3703,9 @@ void main() {
3703
3703
}
3704
3704
''' ,
3705
3705
}, 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'
3709
3709
}
3710
3710
}),
3711
3711
throwsArgumentError);
@@ -3735,7 +3735,7 @@ void main() {
3735
3735
}
3736
3736
''' ,
3737
3737
}, config: {
3738
- " build_extensions" : {" ^test/{{}}" : " test/mocks/{{}}.mocks.dart" }
3738
+ ' build_extensions' : {' ^test/{{}}' : ' test/mocks/{{}}.mocks.dart' }
3739
3739
}),
3740
3740
throwsArgumentError);
3741
3741
final mocksAsset = AssetId ('foo' , 'test/mocks/foo_test.mocks.dart' );
@@ -3761,7 +3761,7 @@ void main() {
3761
3761
}
3762
3762
''' ,
3763
3763
}, config: {
3764
- " build_extensions" : {" ^test/{{}}.dart" : " test/mocks/{{}}.g.dart" }
3764
+ ' build_extensions' : {' ^test/{{}}.dart' : ' test/mocks/{{}}.g.dart' }
3765
3765
}),
3766
3766
throwsArgumentError);
3767
3767
final mocksAsset = AssetId ('foo' , 'test/mocks/foo_test.mocks.dart' );
You can’t perform that action at this time.
0 commit comments