Skip to content

Commit 7f2a51b

Browse files
authored
test: update response code for GET request to "/slug" path from 404 to 200
1 parent 4b0b898 commit 7f2a51b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/middleware.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5227,12 +5227,12 @@ describe.each([
52275227
);
52285228
});
52295229

5230-
it('should return the "404" code for the "GET" request to the "/slug" path', async () => {
5230+
it('should return the "200" code for the "GET" request to the "/slug" path', async () => {
52315231
const response = await req.get("/slug");
52325232

5233-
expect(response.statusCode).toBe(404);
5234-
expect(response.headers["content-type"]).toEqual(
5235-
get404ContentTypeHeader(name),
5233+
expect(response.statusCode).toBe(200);
5234+
expect(response.headers["content-type"]).toBe(
5235+
"text/html; charset=utf-8",
52365236
);
52375237
});
52385238

0 commit comments

Comments
 (0)