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 fe678c4 commit 6a8465eCopy full SHA for 6a8465e
1 file changed
test/middleware.test.js
@@ -5109,6 +5109,15 @@ describe.each([
5109
);
5110
});
5111
5112
+ it('should return the "404" code for the "GET" request to the "index.html" file', async () => {
5113
+ const response = await req.get("/index.html/");
5114
+
5115
+ expect(response.statusCode).toBe(404);
5116
+ expect(response.headers["content-type"]).toEqual(
5117
+ get404ContentTypeHeader(name),
5118
+ );
5119
+ });
5120
5121
it('should return the "200" code for the "GET" request to the "index.html" file', async () => {
5122
const response = await req.get("/index.html");
5123
0 commit comments