Skip to content

Commit

Permalink
✅ test(core): Add missing test for getWalletSetupFiles (#950)
Browse files Browse the repository at this point in the history
  • Loading branch information
duckception authored Oct 24, 2023
1 parent cab988c commit 4c83abf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/core/test/utils/getWalletSetupFiles.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ describe('getWalletSetupFiles', () => {
vol.reset() // Clear the in-memory file system after each test
})

it('throws if unknown error', async () => {
// biome-ignore lint/style/noNonNullAssertion: this non-null assertion is intentional
await expect(getWalletSetupFiles(null!)).rejects.toThrowError('path must be a string or Buffer')
})

it('throws if the target directory does not exist', async () => {
const nonExistentDirPath = path.join(ROOT_DIR, 'non-existent-dir')
await expect(getWalletSetupFiles(nonExistentDirPath)).rejects.toThrowError(
Expand Down

0 comments on commit 4c83abf

Please sign in to comment.