summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src/helpers/parseBackupFlags.test.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2023-08-18 13:59:11 -0700
committerMatthew Miller <matthew@millerti.me>2023-08-18 13:59:11 -0700
commita59634a1a9b0393622fb121fbe229132c01a2624 (patch)
treecb4eb3fdf778dfc88d6d389b609b1cef6ebb4b4d /packages/server/src/helpers/parseBackupFlags.test.ts
parente0d32bd2a3a60b4b2fd96a2874eae3ad976483df (diff)
Use single-quotes and increase line width
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);
});