Skip to content

Commit

Permalink
. t updated test for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
yelmuratoff committed May 18, 2024
1 parent bceb17f commit 18b6e08
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions test/groups/diff_tools_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@ void diffToolsTests({
);

// Setup: paths to existent files
const existentApprovedPath =
'test/approved_files/approval_test.verify.approved.txt';
const existentReceivedPath =
'test/approved_files/approval_test.verify.received.txt';
const existentApprovedPath = 'test/approved_files/approval_test.verify.approved.txt';
const existentReceivedPath = 'test/approved_files/approval_test.verify.received.txt';

// Expect an exception to be thrown
expect(
Expand All @@ -43,18 +41,16 @@ void diffToolsTests({
);

// Setup: paths to existent files
const existentApprovedPath =
'test/approved_files/approval_test.verify.approved.txt';
const existentReceivedPath =
'test/approved_files/approval_test.verify.received.txt';
const existentApprovedPath = 'test/approved_files/approval_test.verify.approved.txt';
const existentReceivedPath = 'test/approved_files/approval_test.verify.received.txt';

// Expect an exception to be thrown
expect(
() => reporter.report(
existentApprovedPath,
existentReceivedPath,
),
throwsA(isA<ProcessException>()),
throwsA(Platform.isLinux ? null : isA<ProcessException>()),
);

ApprovalLogger.success(
Expand Down

0 comments on commit 18b6e08

Please sign in to comment.