mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[misc] fix unit tests following the merge of atomic writes
This commit is contained in:
parent
23dd93ae50
commit
567d02881d
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