Skip to content

Commit

Permalink
chore: Fix format, lint and checks for test files
Browse files Browse the repository at this point in the history
  • Loading branch information
angelmadames committed Mar 19, 2024
1 parent a7752fe commit 553d72f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/utils/file-system.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ describe('Utils: file-system', () => {
await deletePath({ path: 'test-dir' });

expect(fs.existsSync).toHaveBeenCalledWith('test-dir');
expect(confirm).toHaveBeenCalledWith({ message: 'Delete directory test-dir recursively?' });
expect(confirm).toHaveBeenCalledWith({
message: 'Delete directory test-dir recursively?',
});
expect(fs.rmdirSync).not.toHaveBeenCalled();
expect(fs.rmSync).not.toHaveBeenCalled();
});
Expand All @@ -259,7 +261,9 @@ describe('Utils: file-system', () => {
await deletePath({ path: 'test-file.txt' });

expect(fs.existsSync).toHaveBeenCalledWith('test-file.txt');
expect(confirm).toHaveBeenCalledWith({ message: 'Delete file test-file.txt?' });
expect(confirm).toHaveBeenCalledWith({
message: 'Delete file test-file.txt?',
});
expect(fs.rmdirSync).not.toHaveBeenCalled();
expect(fs.rmSync).not.toHaveBeenCalled();
});
Expand Down

0 comments on commit 553d72f

Please sign in to comment.