From 6f2fdb268caa706594424a00ed2a81538def895c Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Thu, 25 Feb 2021 12:23:53 +0000 Subject: [PATCH] Merge pull request #3696 from overleaf/jpa-spd-mocks-tpr-webmodule Update tpr-webmodule tests to use new mocks framework GitOrigin-RevId: 7dc280f586de748ddcf73ec5b1802e15a84abe65 --- .../web/test/acceptance/src/mocks/MockFilestoreApi.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/services/web/test/acceptance/src/mocks/MockFilestoreApi.js b/services/web/test/acceptance/src/mocks/MockFilestoreApi.js index 2591a11032..c3ba66ded1 100644 --- a/services/web/test/acceptance/src/mocks/MockFilestoreApi.js +++ b/services/web/test/acceptance/src/mocks/MockFilestoreApi.js @@ -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