summaryrefslogtreecommitdiff
path: root/std/ws/sha1_test.ts
diff options
context:
space:
mode:
authorunderfin <2218301630@qq.com>2020-04-27 20:49:34 +0800
committerGitHub <noreply@github.com>2020-04-27 08:49:34 -0400
commitdf0000ff0a3ce20292fe73b909cd31bd352d5266 (patch)
treec97fdab1bd238e7b551a6997f589c32c7ced1305 /std/ws/sha1_test.ts
parent516d970fd30cae6df071f6f2c8a980558b264438 (diff)
feat(std/uuid): Implement uuid v5 (#4916)
Diffstat (limited to 'std/ws/sha1_test.ts')
-rw-r--r--std/ws/sha1_test.ts24
1 files changed, 0 insertions, 24 deletions
diff --git a/std/ws/sha1_test.ts b/std/ws/sha1_test.ts
deleted file mode 100644
index 8830173a4..000000000
--- a/std/ws/sha1_test.ts
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-const { test } = Deno;
-import { assertEquals } from "../testing/asserts.ts";
-import { Sha1 } from "./sha1.ts";
-
-test("[ws/sha] test1", () => {
- const sha1 = new Sha1();
- sha1.update("abcde");
- assertEquals(sha1.toString(), "03de6c570bfe24bfc328ccd7ca46b76eadaf4334");
-});
-
-test("[ws/sha] testWithArray", () => {
- const data = Uint8Array.of(0x61, 0x62, 0x63, 0x64, 0x65);
- const sha1 = new Sha1();
- sha1.update(data);
- assertEquals(sha1.toString(), "03de6c570bfe24bfc328ccd7ca46b76eadaf4334");
-});
-
-test("[ws/sha] testSha1WithBuffer", () => {
- const data = Uint8Array.of(0x61, 0x62, 0x63, 0x64, 0x65);
- const sha1 = new Sha1();
- sha1.update(data.buffer);
- assertEquals(sha1.toString(), "03de6c570bfe24bfc328ccd7ca46b76eadaf4334");
-});