summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/parseBackupFlags.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/helpers/parseBackupFlags.test.ts')
-rw-r--r--packages/server/src/helpers/parseBackupFlags.test.ts22
1 files changed, 11 insertions, 11 deletions
diff --git a/packages/server/src/helpers/parseBackupFlags.test.ts b/packages/server/src/helpers/parseBackupFlags.test.ts
index 2341fb2..479e967 100644
--- a/packages/server/src/helpers/parseBackupFlags.test.ts
+++ b/packages/server/src/helpers/parseBackupFlags.test.ts
@@ -1,33 +1,33 @@
-import { assertEquals } from "https://deno.land/std@0.198.0/assert/mod.ts";
+import { assertEquals } from 'https://deno.land/std@0.198.0/assert/mod.ts';
-import { InvalidBackupFlags, parseBackupFlags } from "./parseBackupFlags.ts";
-import { assertThrows } from "https://deno.land/std@0.198.0/assert/assert_throws.ts";
+import { InvalidBackupFlags, parseBackupFlags } from './parseBackupFlags.ts';
+import { assertThrows } from 'https://deno.land/std@0.198.0/assert/assert_throws.ts';
-Deno.test("should return single-device cred, not backed up", () => {
+Deno.test('should return single-device cred, not backed up', () => {
const parsed = parseBackupFlags({ be: false, bs: false });
- assertEquals(parsed.credentialDeviceType, "singleDevice");
+ assertEquals(parsed.credentialDeviceType, 'singleDevice');
assertEquals(parsed.credentialBackedUp, false);
});
-Deno.test("should throw on single-device cred, backed up", () => {
+Deno.test('should throw on single-device cred, backed up', () => {
assertThrows(
() => parseBackupFlags({ be: false, bs: true }),
InvalidBackupFlags,
- "impossible",
+ 'impossible',
);
});
-Deno.test("should return multi-device cred, not backed up", () => {
+Deno.test('should return multi-device cred, not backed up', () => {
const parsed = parseBackupFlags({ be: true, bs: false });
- assertEquals(parsed.credentialDeviceType, "multiDevice");
+ assertEquals(parsed.credentialDeviceType, 'multiDevice');
assertEquals(parsed.credentialBackedUp, false);
});
-Deno.test("should return multi-device cred, backed up", () => {
+Deno.test('should return multi-device cred, backed up', () => {
const parsed = parseBackupFlags({ be: true, bs: true });
- assertEquals(parsed.credentialDeviceType, "multiDevice");
+ assertEquals(parsed.credentialDeviceType, 'multiDevice');
assertEquals(parsed.credentialBackedUp, true);
});