mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #3696 from overleaf/jpa-spd-mocks-tpr-webmodule
Update tpr-webmodule tests to use new mocks framework GitOrigin-RevId: 7dc280f586de748ddcf73ec5b1802e15a84abe65
This commit is contained in:
parent
c6b0cd0127
commit
6f2fdb268c
1 changed files with 8 additions and 0 deletions
|
@ -51,6 +51,14 @@ class MockFilestoreApi extends AbstractMockApi {
|
|||
res.sendStatus(204)
|
||||
})
|
||||
}
|
||||
|
||||
getFile(projectId, fileId) {
|
||||
return (
|
||||
this.files[projectId] &&
|
||||
this.files[projectId][fileId] &&
|
||||
this.files[projectId][fileId].content
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = MockFilestoreApi
|
||||
|
|
Loading…
Reference in a new issue