Explicit assertion for linting.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2021-08-31 10:25:40 +02:00
parent 31d4a456bf
commit b894b4cfb9
@@ -147,10 +147,10 @@ describe('local publisher', () => {
});
it('should redirect case-sensitive triplet path to lower-case', async () => {
await request(app)
const response = await request(app)
.get('/default/TestKind/TestName/index.html')
.expect(301)
.expect('Location', '/default/testkind/testname/index.html');
expect(response.status).toBe(301);
});
it('should resolve lower-case triplet path content eventually', async () => {
@@ -173,9 +173,10 @@ describe('local publisher', () => {
);
app = express().use(legacyPublisher.docsRouter());
await request(app)
.get('/default/TestKind/TestName/index.html')
.expect(404);
const response = await request(app).get(
'/default/TestKind/TestName/index.html',
);
expect(response.status).toBe(404);
});
});
});