Skip to content

Commit

Permalink
test: apply code review suggestion from @G-Rath
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Sep 13, 2023
1 parent d1e44d8 commit 2394a8e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/__tests__/volume/mkdirSync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,7 @@ describe('mkdirSync', () => {
const vol = create();

vol.mkdirSync('/__proto__');
let isDirectory = false;
try {
isDirectory = vol.statSync('/__proto__').isDirectory();
} catch {
// ignore
}

expect(isDirectory).toBe(true);
expect(vol.statSync('/__proto__').isDirectory()).toBe(true);
});
});

0 comments on commit 2394a8e

Please sign in to comment.