summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/convertAAGUIDToString.test.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2020-06-20 12:24:50 -0700
committerMatthew Miller <matthew@millerti.me>2020-06-20 12:24:50 -0700
commitc46154bd28805c4c597c7aa49e975c220a43a02a (patch)
treea5f281a4f39a595e2c5c2386613cc5b99bb01e66 /packages/server/src/helpers/convertAAGUIDToString.test.ts
parent3b913114f69e0a7bbe28cbabbec420500a9f3732 (diff)
Add helper for converting aaguid to UUID string
Diffstat (limited to 'packages/server/src/helpers/convertAAGUIDToString.test.ts')
-rw-r--r--packages/server/src/helpers/convertAAGUIDToString.test.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/server/src/helpers/convertAAGUIDToString.test.ts b/packages/server/src/helpers/convertAAGUIDToString.test.ts
new file mode 100644
index 0000000..acef3b9
--- /dev/null
+++ b/packages/server/src/helpers/convertAAGUIDToString.test.ts
@@ -0,0 +1,7 @@
+import convertAAGUIDToString from './convertAAGUIDToString';
+
+test('should convert buffer to UUID string', () => {
+ const uuid = convertAAGUIDToString(Buffer.from('adce000235bcc60a648b0b25f1f05503', 'hex'));
+
+ expect(uuid).toEqual('adce0002-35bc-c60a-648b-0b25f1f05503');
+});