Skip to content

Commit

Permalink
Update tests/build-pages.test.js
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
anshgoyalevil and coderabbitai[bot] authored Dec 27, 2024
1 parent c863f71 commit 6289c28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/build-pages.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ describe('copyAndRenameFiles', () => {
});

test('should create a directory if it does not exist', () => {
const TEST_DIR = 'testDir';
const NEW_TEST_DIR = 'testDir';

expect(fs.existsSync(TEST_DIR)).toBe(false);
ensureDirectoryExists(TEST_DIR);
expect(fs.existsSync(TEST_DIR)).toBe(true);
expect(fs.existsSync(NEW_TEST_DIR)).toBe(false);
ensureDirectoryExists(NEW_TEST_DIR);
expect(fs.existsSync(NEW_TEST_DIR)).toBe(true);
});

});

0 comments on commit 6289c28

Please sign in to comment.