mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 04:41:32 +02:00
get local file writer tests using fake settings
This commit is contained in:
@@ -18,11 +18,15 @@ describe "LocalFileWriter", ->
|
||||
@fs =
|
||||
createWriteStream : sinon.stub().returns(@writeStream)
|
||||
unlink: sinon.stub()
|
||||
@settings =
|
||||
path:
|
||||
uploadFolder:"somewhere"
|
||||
@writer = SandboxedModule.require modulePath, requires:
|
||||
"fs": @fs
|
||||
"logger-sharelatex":
|
||||
log:->
|
||||
err:->
|
||||
"settings-sharelatex":@settings
|
||||
@stubbedFsPath = "something/uploads/eio2k1j3"
|
||||
|
||||
describe "writeStrem", ->
|
||||
|
||||
Reference in New Issue
Block a user