Skip to content

Commit

Permalink
adding unit test for transferpath
Browse files Browse the repository at this point in the history
  • Loading branch information
IDCs committed Nov 28, 2024
1 parent 8c62915 commit 45c980e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions __tests__/util.transferpath.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ jest.mock('../src/util/fs', () => {
size: 0,
});
},
ensureDirWritableAsync: jest.fn((dirPath) => {
insert(dirPath, { });
return Promise.resolve();
}),
mkdirsAsync: jest.fn(dirPath => {
insert(dirPath, { });
return Promise.resolve();
Expand Down

0 comments on commit 45c980e

Please sign in to comment.