@@ -24,10 +24,8 @@ void main() {
24
24
);
25
25
26
26
// Setup: paths to existent files
27
- const existentApprovedPath =
28
- 'test/approved_files/approval_test.verify.approved.txt' ;
29
- const existentReceivedPath =
30
- 'test/approved_files/approval_test.verify.received.txt' ;
27
+ const existentApprovedPath = 'test/approved_files/approval_test.verify.approved.txt' ;
28
+ const existentReceivedPath = 'test/approved_files/approval_test.verify.received.txt' ;
31
29
32
30
// Expect an exception to be thrown
33
31
expect (
@@ -50,10 +48,8 @@ void main() {
50
48
);
51
49
52
50
// Setup: paths to existent files
53
- const existentApprovedPath =
54
- 'test/approved_files/approval_test.verify.approved.txt' ;
55
- const existentReceivedPath =
56
- 'test/approved_files/approval_test.verify.received.txt' ;
51
+ const existentApprovedPath = 'test/approved_files/approval_test.verify.approved.txt' ;
52
+ const existentReceivedPath = 'test/approved_files/approval_test.verify.received.txt' ;
57
53
58
54
// Expect an exception to be thrown
59
55
expect (
@@ -78,11 +74,11 @@ void main() {
78
74
// Expect an exception to be thrown
79
75
expect (
80
76
reporter.isReporterAvailable,
81
- isLinux ? returnsNormally : false ,
77
+ isLinux,
82
78
);
83
79
84
80
ApprovalLogger .success (
85
- "Test Passed: Successfully handled availability: ${ isLinux ? 'normal' : 'false' } for Android Studio DiffReporter on Linux." ,
81
+ "Test Passed: Successfully handled availability: $isLinux for Android Studio DiffReporter on Linux." ,
86
82
);
87
83
});
88
84
@@ -93,10 +89,8 @@ void main() {
93
89
);
94
90
95
91
// Setup: paths to existent files
96
- const existentApprovedPath =
97
- 'test/approved_files/approval_test.verify.approved.txt' ;
98
- const existentReceivedPath =
99
- 'test/approved_files/approval_test.verify.received.txt' ;
92
+ const existentApprovedPath = 'test/approved_files/approval_test.verify.approved.txt' ;
93
+ const existentReceivedPath = 'test/approved_files/approval_test.verify.received.txt' ;
100
94
101
95
// Expect an exception to be thrown
102
96
expect (
@@ -114,10 +108,8 @@ void main() {
114
108
115
109
test ('verify string with Git reporter' , () {
116
110
// Setup: paths to existent files
117
- const existentApprovedPath =
118
- 'test/approved_files/approval_test.verify.approved.txt' ;
119
- const existentReceivedPath =
120
- 'test/approved_files/approval_test.verify.received.txt' ;
111
+ const existentApprovedPath = 'test/approved_files/approval_test.verify.approved.txt' ;
112
+ const existentReceivedPath = 'test/approved_files/approval_test.verify.received.txt' ;
121
113
122
114
// Expect an exception to be thrown
123
115
expect (
@@ -143,9 +135,7 @@ void main() {
143
135
);
144
136
});
145
137
146
- test (
147
- 'gitDiffFiles should return an empty string if no differences for valid files' ,
148
- () {
138
+ test ('gitDiffFiles should return an empty string if no differences for valid files' , () {
149
139
final File path0 = File ('/path/to/existing/file0' );
150
140
final FileSystemEntity path1 = File ('/path/to/existing/file1' );
151
141
@@ -155,15 +145,12 @@ void main() {
155
145
});
156
146
157
147
test ('GitReporter with not correct custom diff info' , () {
158
- const DiffInfo customDiffInfo =
159
- DiffInfo (name: "G1t" , command: 'g1t' , arg: 'diff --no-index' );
148
+ const DiffInfo customDiffInfo = DiffInfo (name: "G1t" , command: 'g1t' , arg: 'diff --no-index' );
160
149
161
150
const gitReporter = GitReporter (customDiffInfo: customDiffInfo);
162
151
163
- const existentApprovedPath =
164
- 'test/approved_files/approval_test.verify.approved.txt' ;
165
- const existentReceivedPath =
166
- 'test/approved_files/approval_test.verify.received.txt' ;
152
+ const existentApprovedPath = 'test/approved_files/approval_test.verify.approved.txt' ;
153
+ const existentReceivedPath = 'test/approved_files/approval_test.verify.received.txt' ;
167
154
168
155
// Expect an exception to be thrown
169
156
expect (
0 commit comments