Skip to content

Commit

Permalink
Add a stub for /last-proofed-version in integration tests to prevent …
Browse files Browse the repository at this point in the history
…file not found errors
  • Loading branch information
jonathonherbert committed Apr 26, 2024
1 parent 94d55e4 commit 990b7a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fronts-client/integration/server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ module.exports = async () =>
return res.json([]);
});

app.get('*/last-proofed-version*', (req, res) => {
return res.json(null);
});

// send the assets from dist
app.get('*/:file', (req, res) =>
req.params[0].includes('bbc') // prevents error messages from External Snap Link fixture
Expand Down

0 comments on commit 990b7a6

Please sign in to comment.