lint: fix biome issues in new test files and helpers
This commit is contained in:
1 parent
99eb3af17b
commit
93862c2275
41 files changed
+488
-314
No files matched your search
@@ -69,11 +69,7 @@ describe("applyDj", () => {
|
||||
await expect(applyDj(buildForm())).rejects.toThrow(
|
||||
"/radio/apply?submitted=1",
|
||||
);
|
||||
expect(state.rateLimit).toHaveBeenCalledWith(
|
||||
"radio-apply:5",
|
||||
2,
|
||||
300_000,
|
||||
);
|
||||
expect(state.rateLimit).toHaveBeenCalledWith("radio-apply:5", 2, 300_000);
|
||||
expect(state.insert).toHaveBeenCalledOnce();
|
||||
expect(state.insert.mock.calls[0][0]).toBe(RadioApplications);
|
||||
expect(state.insert.mock.calls[0][1]).toMatchObject({
|
||||
@@ -164,4 +160,4 @@ describe("applyDj", () => {
|
||||
);
|
||||
expect(state.revalidatePath).toHaveBeenCalledWith("/radio/apply");
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user