[misc] fix unit tests following the merge of atomic writes

This commit is contained in:
Jakob Ackermann 2021-05-18 11:09:30 +01:00
parent 23dd93ae50
commit 567d02881d

View file

@ -79,7 +79,13 @@ describe('ContentCacheManager', function () {
throw new Error()
}
},
rename: sinon.stub().resolves(),
async rename(oldName, newName) {
if (!files[oldName]) {
throw new Error()
}
files[newName] = files[oldName]
delete files[oldName]
},
unlink: sinon.stub().resolves()
}
}