Merge pull request #12823 from overleaf/jpa-clsi-download-tests

[clsi] modernise tests for file downloads

GitOrigin-RevId: b33749b9100812de8ae2a26bd84e933f0282457b
This commit is contained in:
Jakob Ackermann
2023-04-27 08:06:54 +00:00
committed by Copybot
parent 5380999459
commit a437dcf537
3 changed files with 116 additions and 26 deletions
@@ -197,9 +197,9 @@ const downloadAndComparePdf = function (projectId, exampleDir, url, callback) {
.catch(callback)
}
Client.runServer(4242, fixturePath('examples'))
describe('Example Documents', function () {
Client.runFakeFilestoreService(fixturePath('examples'))
before(function (done) {
ClsiApp.ensureRunning(done)
})
@@ -226,7 +226,6 @@ describe('Example Documents', function () {
this.project_id,
fixturePath('examples'),
exampleDir,
4242,
(error, res, body) => {
if (
error ||
@@ -255,7 +254,6 @@ describe('Example Documents', function () {
this.project_id,
fixturePath('examples'),
exampleDir,
4242,
(error, res, body) => {
if (
error ||