Skip to content

Commit 3b094ff

Browse files
committed
literal keys
1 parent 619ce01 commit 3b094ff

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

biome.jsonc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@
4646
"rules": {
4747
"suspicious": {
4848
"noRedeclare": "off"
49-
},
50-
"complexity": {
51-
"useLiteralKeys": "off"
5249
}
5350
}
5451
}

packages/tests-e2e/tests/appRouter/methods.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ test.describe("all supported methods should work in route handlers", () => {
8080
});
8181
expect(optionsRes.status()).toEqual(204);
8282
const headers = optionsRes.headers();
83-
expect(headers["allow"]).toContain("GET");
84-
expect(headers["allow"]).toContain("HEAD");
85-
expect(headers["allow"]).toContain("POST");
86-
expect(headers["allow"]).toContain("PUT");
87-
expect(headers["allow"]).toContain("PATCH");
88-
expect(headers["allow"]).toContain("DELETE");
89-
expect(headers["allow"]).toContain("OPTIONS");
90-
expect(headers["allow"]).toContain("LOVE");
91-
expect(headers["special"]).toContain("OpenNext is the best :) :] :> :D");
83+
expect(headers.allow).toContain("GET");
84+
expect(headers.allow).toContain("HEAD");
85+
expect(headers.allow).toContain("POST");
86+
expect(headers.allow).toContain("PUT");
87+
expect(headers.allow).toContain("PATCH");
88+
expect(headers.allow).toContain("DELETE");
89+
expect(headers.allow).toContain("OPTIONS");
90+
expect(headers.allow).toContain("LOVE");
91+
expect(headers.special).toContain("OpenNext is the best :) :] :> :D");
9292
});
9393
});
9494

@@ -169,7 +169,7 @@ test("should be able to redirect in route handler", async ({ request }) => {
169169
maxRedirects: 0,
170170
});
171171
expect(redirectRes.status()).toBe(307);
172-
expect(redirectRes.headers()["location"]).toBe("https://nextjs.org/");
172+
expect(redirectRes.headers().location).toBe("https://nextjs.org/");
173173

174174
// Check if the redirect works
175175
const followedRes = await request.get("/methods/get/redirect");

0 commit comments

Comments
 (0)