Skip to content

Commit

Permalink
Merge pull request #538 from netlify/test-backend-deletion-fix
Browse files Browse the repository at this point in the history
Fix deletion for the `test-repo` backend.
  • Loading branch information
erquhart authored Aug 17, 2017
2 parents 76da81a + 37f6e7b commit de8db81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backends/test-repo/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit de8db81

Please sign in to comment.