Merge pull request #14409 from overleaf/jpa-open-source-history-v1-tests

[web] enable history-v1 tests for Server Pro/CE

GitOrigin-RevId: 74119a09c101ed74c37833384722f85b0e3830dd
This commit is contained in:
Jakob Ackermann
2023-09-01 08:03:53 +00:00
committed by Copybot
parent 28ece3d627
commit 28970954b5
3 changed files with 14 additions and 2 deletions
@@ -295,6 +295,12 @@ describe('History', function () {
(appRoute.route != null ? appRoute.route.path : undefined) ===
'/api/projects/:project_id/version/:version/zip'
)
MockV1HistoryApi.app.get(
'/api/projects/:project_id/version/:version/zip',
(req, res, next) => {
res.sendStatus(500)
}
)
MockV1HistoryApi.app.post(
'/api/projects/:project_id/version/:version/zip',
(req, res, next) => {
@@ -309,7 +315,7 @@ describe('History', function () {
MockV1HistoryApi.applyRoutes()
})
it('should produce 404 when post request produces 404', function (done) {
it('should produce 500', function (done) {
this.owner.createProject('example-project', (error, projectId) => {
if (error) {
return done(error)