mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-21 15:21:25 +00:00
Fix unit tests
This commit is contained in:
parent
b8fdbdb406
commit
afca9ba0cb
1 changed files with 4 additions and 1 deletions
|
@ -12,7 +12,10 @@ describe 'TemplatesController', ->
|
||||||
|
|
||||||
beforeEach ->
|
beforeEach ->
|
||||||
@request = sinon.stub()
|
@request = sinon.stub()
|
||||||
@request.returns pipe:->
|
@request.returns {
|
||||||
|
pipe:->
|
||||||
|
on:->
|
||||||
|
}
|
||||||
@fs = {
|
@fs = {
|
||||||
unlink : sinon.stub()
|
unlink : sinon.stub()
|
||||||
createWriteStream : sinon.stub().returns(on:(_, cb)->cb())
|
createWriteStream : sinon.stub().returns(on:(_, cb)->cb())
|
||||||
|
|
Loading…
Reference in a new issue