mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #237 from overleaf/jpa-fix-unit-tests
[misc] fix unit tests following the merge of atomic writes
This commit is contained in:
commit
31a29403a1
1 changed files with 7 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue