Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion test/testClearBareClone.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,18 @@ describe('clear bare and local clones', async () => {
);

expect(fs.existsSync(`./.remote/${timestamp}`)).to.be.true;
}).timeout(10000);
}).timeout(20000);

it('clear bare clone function purges .remote folder and specific clone folder', async () => {
const action = new Action('123', 'type', 'get', timestamp, 'finos/git-proxy');
await clearBareClone(null, action);
expect(fs.existsSync(`./.remote`)).to.throw;
expect(fs.existsSync(`./.remote/${timestamp}`)).to.throw;
});

afterEach(() => {
if (fs.existsSync(`./.remote`)) {
fs.rmdirSync(`./.remote`, { recursive: true });
}
})
});