@@ -45,27 +45,26 @@ void main() {
45
45
() async {
46
46
var inputSpecFile =
47
47
File ('$parentFolder /github_issue_#$issueNumber .json' );
48
- var outputDir = Directory ('./test/specs/issue/$issueNumber /output' );
48
+ var outputDir = Directory ('./test/specs/issue/$issueNumber /output' );
49
49
var generatedOutput = await generateFromAnnotation (
50
50
Openapi (
51
- additionalProperties: AdditionalProperties (
52
- pubName: 'tictactoe_api' ,
53
- pubAuthor: 'Jon Doe' ,
54
- pubAuthorEmail
: '[email protected] ' ),
55
- inputSpec: InputSpec (path: inputSpecFile.path),
56
- generatorName: Generator .dart,
57
- cleanSubOutputDirectory: [
58
- './test/specs/issue/$issueNumber /output'
59
- ],
60
- cachePath: './test/specs/issue/$issueNumber /output/cache.json' ,
61
- outputDirectory: outputDir.path,),
51
+ additionalProperties: AdditionalProperties (
52
+ pubName: 'tictactoe_api' ,
53
+ pubAuthor: 'Jon Doe' ,
54
+ pubAuthorEmail
: '[email protected] ' ),
55
+ inputSpec: InputSpec (path: inputSpecFile.path),
56
+ generatorName: Generator .dart,
57
+ cleanSubOutputDirectory: ['./test/specs/issue/$issueNumber /output' ],
58
+ cachePath: './test/specs/issue/$issueNumber /output/cache.json' ,
59
+ outputDirectory: outputDir.path,
60
+ ),
62
61
process: processRunner,
63
62
);
64
63
65
64
expectSourceGenSkipped (outputDir);
66
-
65
+
67
66
expectCodeFormattedSuccessfully (outputDir);
68
-
67
+
69
68
var analyzeResult = await Process .run (
70
69
'dart' ,
71
70
['analyze' ],
@@ -75,7 +74,7 @@ void main() {
75
74
'Analysis result: ${analyzeResult .stdout }\n\n ${analyzeResult .stderr }' );
76
75
expect (analyzeResult.exitCode, 0 ,
77
76
reason: '${analyzeResult .stdout }\n\n ${analyzeResult .stderr }' );
78
-
77
+
79
78
cleanup (workingDirectory);
80
79
});
81
80
});
0 commit comments