Skip to content

Commit

Permalink
. r formmated code
Browse files Browse the repository at this point in the history
  • Loading branch information
yelmuratoff committed Jun 30, 2024
1 parent 138879a commit 4d3b766
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions packages/approval_tests/test/groups/diff_tools_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ void main() {
);

// 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 @@ -48,8 +50,10 @@ void main() {
);

// 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 Down Expand Up @@ -89,8 +93,10 @@ void main() {
);

// 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 @@ -108,8 +114,10 @@ void main() {

test('verify string with Git reporter', () {
// 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 @@ -135,7 +143,9 @@ void main() {
);
});

test('gitDiffFiles should return an empty string if no differences for valid files', () {
test(
'gitDiffFiles should return an empty string if no differences for valid files',
() {
final File path0 = File('/path/to/existing/file0');
final FileSystemEntity path1 = File('/path/to/existing/file1');

Expand All @@ -145,12 +155,15 @@ void main() {
});

test('GitReporter with not correct custom diff info', () {
const DiffInfo customDiffInfo = DiffInfo(name: "G1t", command: 'g1t', arg: 'diff --no-index');
const DiffInfo customDiffInfo =
DiffInfo(name: "G1t", command: 'g1t', arg: 'diff --no-index');

const gitReporter = GitReporter(customDiffInfo: customDiffInfo);

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 Down

0 comments on commit 4d3b766

Please sign in to comment.