From 4c211bc82e8bfc7560e9487a61de5b498b871ebf Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Tue, 22 Dec 2020 00:18:59 +0000 Subject: [PATCH] fix(test): use @pushrocks/isohash instead of @pushrocks/smarthash in tests --- test/test.expressserver.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.expressserver.ts b/test/test.expressserver.ts index 70b300f..3baa0f7 100644 --- a/test/test.expressserver.ts +++ b/test/test.expressserver.ts @@ -1,7 +1,7 @@ // tslint:disable-next-line:no-implicit-dependencies import { expect, tap } from '@pushrocks/tapbundle'; -import * as smarthash from '@pushrocks/smarthash'; +import * as isohash from '@pushrocks/isohash'; import * as smartpromise from '@pushrocks/smartpromise'; import * as smartexpress from '@pushrocks/smartexpress'; @@ -40,7 +40,7 @@ tap.test('Should accept an smartExpressServer as server', async () => { tap.test('should add a socketrole', async () => { testSocketRole1 = new smartsocket.SocketRole({ name: 'testRole1', - passwordHash: smarthash.sha256FromStringSync('testPassword'), + passwordHash: await isohash.sha256FromString('testPassword'), }); testSmartsocket.addSocketRoles([testSocketRole1]); });