Merge pull request #538 from netlify/test-backend-deletion-fix

Fix deletion for the `test-repo` backend.
This commit is contained in:
Shawn Erquhart 2017-08-17 17:16:10 -04:00 committed by GitHub
commit de8db81320

View File

@ -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();
}
}