mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
update unit tests - FileHandler now calls deleteDirectory on cache directory
This commit is contained in:
@@ -69,6 +69,7 @@ describe "FileHandler", ->
|
||||
beforeEach ->
|
||||
@keyBuilder.getConvertedFolderKey.returns(@stubbedConvetedKey)
|
||||
@PersistorManager.deleteFile.callsArgWith(2)
|
||||
@PersistorManager.deleteDirectory.callsArgWith(2)
|
||||
|
||||
it "should tell the filestore manager to delete the file", (done)->
|
||||
@handler.deleteFile @bucket, @key, =>
|
||||
@@ -77,7 +78,7 @@ describe "FileHandler", ->
|
||||
|
||||
it "should tell the filestore manager to delete the cached foler", (done)->
|
||||
@handler.deleteFile @bucket, @key, =>
|
||||
@PersistorManager.deleteFile.calledWith(@bucket, @stubbedConvetedKey).should.equal true
|
||||
@PersistorManager.deleteDirectory.calledWith(@bucket, @stubbedConvetedKey).should.equal true
|
||||
done()
|
||||
|
||||
describe "getFile", ->
|
||||
|
||||
Reference in New Issue
Block a user