From 7bfeaf7c9251dcfc087f371250bc086b87cda376 Mon Sep 17 00:00:00 2001 From: Luke Crouch Date: Fri, 17 Aug 2018 11:58:00 -0500 Subject: [PATCH] convert sha1 test to jest --- tests/{test-sha1.js => sha1.test.js} | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename tests/{test-sha1.js => sha1.test.js} (65%) diff --git a/tests/test-sha1.js b/tests/sha1.test.js similarity index 65% rename from tests/test-sha1.js rename to tests/sha1.test.js index 2f11df52c..9e66a839c 100644 --- a/tests/test-sha1.js +++ b/tests/sha1.test.js @@ -1,6 +1,5 @@ "use strict"; -const test = require("tape-async"); const getSha1 = require("../sha1-utils"); @@ -13,7 +12,7 @@ function isHexString(hashDigest) { return true; } -test("getSha1 returns hex digest", t => { - t.ok(isHexString(getSha1("test@test.com"))); - t.end(); + +test("getSha1 returns hex digest", () => { + expect(isHexString(getSha1("test@test.com"))).toBeTruthy(); });