diff --git a/services/clsi/test/unit/js/ContentCacheManagerTests.js b/services/clsi/test/unit/js/ContentCacheManagerTests.js index 90fe60c52c..a7b25eacbc 100644 --- a/services/clsi/test/unit/js/ContentCacheManagerTests.js +++ b/services/clsi/test/unit/js/ContentCacheManagerTests.js @@ -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() } }