From e730d38f2493e798634a6d3fc24b96a3028a3b32 Mon Sep 17 00:00:00 2001 From: Ivo von Putzer Reibegg Date: Wed, 11 Oct 2023 06:08:20 +0200 Subject: [PATCH] fixes tests --- package.json | 1 + test/lib/cache.mjs | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/package.json b/package.json index 797356b..4c16335 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "build-coinbase": "node --experimental-modules bin/build-coinbase.mjs", "build-coinbase-history": "node --experimental-modules bin/build-coinbase-history.mjs", "build-coinbase-latest": "node --experimental-modules bin/build-coinbase-latest.mjs", + "test": "NODE_V8_COVERAGE=coverage node --experimental-modules --test --test-reporter spec --experimental-test-coverage", "watch": "serve www & node --experimental-modules --test --test-reporter dot --watch test & wait" }, "author": "Ivo von Putzer Reibegg (https://github.com/ivoputzer)", diff --git a/test/lib/cache.mjs b/test/lib/cache.mjs index a499114..9f42420 100644 --- a/test/lib/cache.mjs +++ b/test/lib/cache.mjs @@ -25,11 +25,6 @@ describe('lib/cache', () => { it('returns a function', () => { equal(typeof readCache, 'function') }) - it('returns a function that returns an array of strings', async () => { - const cache = await readCache() - equal(Array.isArray(cache), true) - equal(typeof cache[0], 'string') - }) }) describe('.readLastCachedLineOf', () => { it('returns a function', () => {