mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 12:23:35 -05:00
update unit tests - FileHandler now calls deleteDirectory on cache directory
This commit is contained in:
parent
64c6341844
commit
3f18f6a714
1 changed files with 2 additions and 1 deletions
|
@ -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", ->
|
||||
|
|
Loading…
Reference in a new issue