mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-24 13:02:49 +00:00
Un-break FileStoreControllerTests by mocking out the req.get
method.
This commit is contained in:
parent
2dd56d0b32
commit
ce248f56d7
1 changed files with 4 additions and 3 deletions
|
@ -21,14 +21,15 @@ describe "FileStoreController", ->
|
|||
@stream = {}
|
||||
@project_id = "2k3j1lk3j21lk3j"
|
||||
@file_id = "12321kklj1lk3jk12"
|
||||
@req =
|
||||
@req =
|
||||
params:
|
||||
Project_id: @project_id
|
||||
File_id: @file_id
|
||||
query: "query string here"
|
||||
@res =
|
||||
get: (key) -> undefined
|
||||
@res =
|
||||
setHeader: sinon.stub()
|
||||
@file =
|
||||
@file =
|
||||
name: "myfile.png"
|
||||
|
||||
describe "getFile", ->
|
||||
|
|
Loading…
Reference in a new issue