From 18b6e0892c8ca969e0c2eada5f3956b74095b595 Mon Sep 17 00:00:00 2001 From: Yelaman Yelmuratov Date: Sun, 19 May 2024 02:04:24 +0500 Subject: [PATCH] . t updated test for Linux --- test/groups/diff_tools_tests.dart | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/test/groups/diff_tools_tests.dart b/test/groups/diff_tools_tests.dart index 647a39f..b841b71 100644 --- a/test/groups/diff_tools_tests.dart +++ b/test/groups/diff_tools_tests.dart @@ -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( @@ -43,10 +41,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( @@ -54,7 +50,7 @@ void diffToolsTests({ existentApprovedPath, existentReceivedPath, ), - throwsA(isA()), + throwsA(Platform.isLinux ? null : isA()), ); ApprovalLogger.success(