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:
Jakob Ackermann 2021-02-25 12:23:53 +00:00 committed by Copybot
parent c6b0cd0127
commit 6f2fdb268c

View file

@ -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