feat: add async suffix eslint rule (#485)
This commit is contained in:
@@ -78,8 +78,8 @@ describe("byId should return an app by id", () => {
|
||||
session: null,
|
||||
});
|
||||
|
||||
const act = async () => await caller.byId({ id: "2" });
|
||||
await expect(act()).rejects.toThrow("App not found");
|
||||
const actAsync = async () => await caller.byId({ id: "2" });
|
||||
await expect(actAsync()).rejects.toThrow("App not found");
|
||||
});
|
||||
});
|
||||
|
||||
@@ -174,7 +174,7 @@ describe("update should update an app", () => {
|
||||
session: null,
|
||||
});
|
||||
|
||||
const act = async () =>
|
||||
const actAsync = async () =>
|
||||
await caller.update({
|
||||
id: createId(),
|
||||
name: "Mantine",
|
||||
@@ -182,7 +182,7 @@ describe("update should update an app", () => {
|
||||
description: null,
|
||||
href: null,
|
||||
});
|
||||
await expect(act()).rejects.toThrow("App not found");
|
||||
await expect(actAsync()).rejects.toThrow("App not found");
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user