Skip to content

Commit 101d6cf

Browse files
committed
Update triggers test
1 parent 125a596 commit 101d6cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/convex-helpers/server/triggers.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ test("trigger denormalizes field", async () => {
158158
lastName: "Doe",
159159
});
160160
await t.run(async (ctx) => {
161+
// eslint-disable-next-line @convex-dev/explicit-table-ids -- Testing the old API
161162
const user = await ctx.db.get(userId);
162163
expect(user!.fullName).toStrictEqual("John Doe");
163164
});
@@ -170,7 +171,7 @@ test("trigger with explicit IDs denormalizes field", async () => {
170171
lastName: "Doe",
171172
});
172173
await t.run(async (ctx) => {
173-
const user = await ctx.db.get(userId);
174+
const user = await ctx.db.get("users", userId);
174175
expect(user!.fullName).toStrictEqual("John Doe");
175176
});
176177
});

0 commit comments

Comments
 (0)