We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b0b898 commit 7f2a51bCopy full SHA for 7f2a51b
1 file changed
test/middleware.test.js
@@ -5227,12 +5227,12 @@ describe.each([
5227
);
5228
});
5229
5230
- it('should return the "404" code for the "GET" request to the "/slug" path', async () => {
+ it('should return the "200" code for the "GET" request to the "/slug" path', async () => {
5231
const response = await req.get("/slug");
5232
5233
- expect(response.statusCode).toBe(404);
5234
- expect(response.headers["content-type"]).toEqual(
5235
- get404ContentTypeHeader(name),
+ expect(response.statusCode).toBe(200);
+ expect(response.headers["content-type"]).toBe(
+ "text/html; charset=utf-8",
5236
5237
5238
0 commit comments