mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-04 23:37:19 +00:00
fix getFileStream unit test as callback no longer fires immediately
success callback is now called only when file is readable
This commit is contained in:
parent
efd6035849
commit
8b9213d09b
1 changed files with 2 additions and 2 deletions
|
@ -74,8 +74,8 @@ describe "FSPersistorManagerTests", ->
|
|||
on:->
|
||||
)
|
||||
@FSPersistorManager.getFileStream @location, @name1, (err,res)=>
|
||||
@Fs.createReadStream.calledWith("#{@location}/#{@name1Filtered}").should.equal.true
|
||||
done()
|
||||
@Fs.createReadStream.calledWith("#{@location}/#{@name1Filtered}").should.equal.true
|
||||
done()
|
||||
|
||||
describe "copyFile", ->
|
||||
beforeEach ->
|
||||
|
|
Loading…
Reference in a new issue