Skip to content

Commit b68f64b

Browse files
fix: remove event id tests from intents (#285)
1 parent d54565a commit b68f64b

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

apps/web/src/lib/qr-intents/test/parse.test.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ import { Intent } from "../intent.ts";
55
describe("Parse QR Intents", () => {
66
it("parses valid check in intent", () => {
77
const user_id = "aa62e8a1-b4fb-479a-8d15-e52328920d18";
8-
const event_id = "fe395fb7-7d57-49fb-90ae-d56094445e45";
98

10-
const input = `checkin::${user_id}+${event_id}`;
9+
const input = `IDENT::${user_id}`;
1110
const result = parseQrIntent(input);
1211

1312
expect(result.ok).toBe(true);
@@ -16,10 +15,8 @@ describe("Parse QR Intents", () => {
1615
expect.fail("Returned an error when parsing QR Intents");
1716
}
1817

19-
expect(result.value.intent).toBe(Intent.CHECK_IN);
18+
expect(result.value.intent).toBe(Intent.IDENT);
2019
expect(result.value.user_id).toBe(user_id);
21-
expect(result.value.event_id);
22-
expect(result.value.event_id).toBe(event_id);
2320
});
2421

2522
it("parses invalid header correctly", () => {

0 commit comments

Comments
 (0)