diff options
Diffstat (limited to 'std/hash/sha1_test.ts')
-rw-r--r-- | std/hash/sha1_test.ts | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/std/hash/sha1_test.ts b/std/hash/sha1_test.ts index 2c78bb1c8..25571947f 100644 --- a/std/hash/sha1_test.ts +++ b/std/hash/sha1_test.ts @@ -16,7 +16,6 @@ function toHexString(value: number[] | ArrayBuffer): string { return hex; } -// prettier-ignore // deno-fmt-ignore const fixtures: { sha1: Record<string, Record<string, Message>>; @@ -74,10 +73,9 @@ for (const method of methods) { fn() { const algorithm = new Sha1(); algorithm.update(message); - const actual = - method === "hex" - ? algorithm[method]() - : toHexString(algorithm[method]()); + const actual = method === "hex" + ? algorithm[method]() + : toHexString(algorithm[method]()); assertEquals(actual, expected); }, }); @@ -94,10 +92,9 @@ for (const method of methods) { fn() { const algorithm = new Sha1(true); algorithm.update(message); - const actual = - method === "hex" - ? algorithm[method]() - : toHexString(algorithm[method]()); + const actual = method === "hex" + ? algorithm[method]() + : toHexString(algorithm[method]()); assertEquals(actual, expected); }, }); |