From f5c9b7d1b251a55600e4441f9f50b02a06291312 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 15 Oct 2024 16:10:15 -0500 Subject: [PATCH] Fix base64 test --- src/utils/base64.test.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/utils/base64.test.ts b/src/utils/base64.test.ts index ae0782677..d2537d99b 100644 --- a/src/utils/base64.test.ts +++ b/src/utils/base64.test.ts @@ -1,10 +1,8 @@ -import * as base64 from './base64'; +import { decodeBase64 } from './base64'; -describe('base64', () => { - describe('decode', () => { - it('returns a uint8 array', () => { - const arr = base64.decode('dGVzdA=='); - expect(arr).toEqual(new Uint8Array([116, 101, 115, 116])); - }); +describe('decodeBase64', () => { + it('returns a uint8 array', () => { + const arr = decodeBase64('dGVzdA=='); + expect(arr).toEqual(new Uint8Array([116, 101, 115, 116])); }); });