summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2023-08-17 12:32:18 -0700
committerMatthew Miller <matthew@millerti.me>2023-08-17 12:32:18 -0700
commitd7dc4003316e0a765419c0acd42aba3a6da3c577 (patch)
tree58042e2647c7422c2423beb5d623b1fe230cdacb
parent81951958853846437ab1c12988c9d7600d1a00bf (diff)
Update convertAAGUIDToString tests
-rw-r--r--packages/server/src/helpers/convertAAGUIDToString.test.ts9
1 files changed, 6 insertions, 3 deletions
diff --git a/packages/server/src/helpers/convertAAGUIDToString.test.ts b/packages/server/src/helpers/convertAAGUIDToString.test.ts
index 2627f10..91e13d4 100644
--- a/packages/server/src/helpers/convertAAGUIDToString.test.ts
+++ b/packages/server/src/helpers/convertAAGUIDToString.test.ts
@@ -1,9 +1,12 @@
+import { assertEquals } from "https://deno.land/std@0.198.0/assert/mod.ts";
+
import { convertAAGUIDToString } from "./convertAAGUIDToString.ts";
+import { isoUint8Array } from "./iso/index.ts";
-test("should convert buffer to UUID string", () => {
+Deno.test("should convert buffer to UUID string", () => {
const uuid = convertAAGUIDToString(
- Buffer.from("adce000235bcc60a648b0b25f1f05503", "hex"),
+ isoUint8Array.fromHex("adce000235bcc60a648b0b25f1f05503"),
);
- expect(uuid).toEqual("adce0002-35bc-c60a-648b-0b25f1f05503");
+ assertEquals(uuid, "adce0002-35bc-c60a-648b-0b25f1f05503");
});