Merge pull request #538 from netlify/test-backend-deletion-fix
Fix deletion for the `test-repo` backend.
This commit is contained in:
commit
de8db81320
@ -93,10 +93,10 @@ export default class TestRepo {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
deleteEntry(path, commitMessage) {
|
||||
deleteFile(path, commitMessage) {
|
||||
const folder = path.substring(0, path.lastIndexOf('/'));
|
||||
const fileName = path.substring(path.lastIndexOf('/') + 1);
|
||||
window.repoFiles[folder][fileName] = undefined;
|
||||
delete window.repoFiles[folder][fileName];
|
||||
return Promise.resolve();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user