Skip to content

Commit 138879a

Browse files
committed
- t return normally to true for linux availability test
1 parent a250655 commit 138879a

File tree

1 file changed

+14
-27
lines changed

1 file changed

+14
-27
lines changed

packages/approval_tests/test/groups/diff_tools_tests.dart

+14-27
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ void main() {
2424
);
2525

2626
// 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';
3129

3230
// Expect an exception to be thrown
3331
expect(
@@ -50,10 +48,8 @@ void main() {
5048
);
5149

5250
// 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';
5753

5854
// Expect an exception to be thrown
5955
expect(
@@ -78,11 +74,11 @@ void main() {
7874
// Expect an exception to be thrown
7975
expect(
8076
reporter.isReporterAvailable,
81-
isLinux ? returnsNormally : false,
77+
isLinux,
8278
);
8379

8480
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.",
8682
);
8783
});
8884

@@ -93,10 +89,8 @@ void main() {
9389
);
9490

9591
// 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';
10094

10195
// Expect an exception to be thrown
10296
expect(
@@ -114,10 +108,8 @@ void main() {
114108

115109
test('verify string with Git reporter', () {
116110
// 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';
121113

122114
// Expect an exception to be thrown
123115
expect(
@@ -143,9 +135,7 @@ void main() {
143135
);
144136
});
145137

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', () {
149139
final File path0 = File('/path/to/existing/file0');
150140
final FileSystemEntity path1 = File('/path/to/existing/file1');
151141

@@ -155,15 +145,12 @@ void main() {
155145
});
156146

157147
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');
160149

161150
const gitReporter = GitReporter(customDiffInfo: customDiffInfo);
162151

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';
167154

168155
// Expect an exception to be thrown
169156
expect(

0 commit comments

Comments
 (0)