Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
68ab120
commit 0bed06d
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const assert = require('assert/strict'); | ||
const {agentProvider} = require('../utils/e2e-framework'); | ||
|
||
describe('Static files', function () { | ||
let frontendAgent; | ||
|
||
before(async function () { | ||
const agents = await agentProvider.getAgentsWithFrontend(); | ||
frontendAgent = agents.frontendAgent; | ||
}); | ||
|
||
it('serves unstyled 404 for non-existing resized + original files', async function () { | ||
const response = await frontendAgent | ||
.get('/content/images/size/w2000/1995/12/daniel.jpg') | ||
.expect(404); | ||
|
||
assert.ok(response.text.includes('NotFoundError: Image not found')); | ||
}); | ||
}); |