Skip to content

Commit c731199

Browse files
committed
test(files.service): add more test to isSafeToDelete
1 parent a193e03 commit c731199

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

__tests__/files.service.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ describe('File Service', () => {
130130
fileService.isSafeToDelete('/one/node_/ro/modules', target),
131131
).toBeFalsy();
132132
expect(fileService.isSafeToDelete('nodemodules', target)).toBeFalsy();
133+
expect(fileService.isSafeToDelete('/', target)).toBeFalsy();
134+
expect(fileService.isSafeToDelete('/home', target)).toBeFalsy();
135+
expect(fileService.isSafeToDelete('/home/user', target)).toBeFalsy();
133136
});
134137

135138
it('should get true if is safe to delete ', () => {

0 commit comments

Comments
 (0)