diff options
Diffstat (limited to 'packages/server/src/helpers/toHash.test.ts')
-rw-r--r-- | packages/server/src/helpers/toHash.test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/server/src/helpers/toHash.test.ts b/packages/server/src/helpers/toHash.test.ts index df0c50d..8893c51 100644 --- a/packages/server/src/helpers/toHash.test.ts +++ b/packages/server/src/helpers/toHash.test.ts @@ -1,11 +1,11 @@ import { toHash } from './toHash'; -test('should return a buffer of at 32 bytes for input string', () => { - const hash = toHash('string'); +test('should return a buffer of at 32 bytes for input string', async () => { + const hash = await toHash('string'); expect(hash.byteLength).toEqual(32); }); -test('should return a buffer of at 32 bytes for input Buffer', () => { - const hash = toHash(Buffer.alloc(10)); +test('should return a buffer of at 32 bytes for input Buffer', async () => { + const hash = await toHash(Buffer.alloc(10)); expect(hash.byteLength).toEqual(32); }); |