From 7536574ac09696acafb6a8bf20394f5cb9ba1def Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Fri, 17 Sep 2021 15:33:13 -0400 Subject: [PATCH] expect.assertions() --- utils/GunSmith/GunSmith.spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/utils/GunSmith/GunSmith.spec.js b/utils/GunSmith/GunSmith.spec.js index dee4c50f..a1f02602 100644 --- a/utils/GunSmith/GunSmith.spec.js +++ b/utils/GunSmith/GunSmith.spec.js @@ -46,11 +46,13 @@ const whenReady = () => }) describe('gun smith', () => { + // eslint-disable-next-line jest/no-hooks afterAll(() => { Gun.kill() }) - it('puts a true and reads it with once()', async function(done) { + it('puts a true and reads it with once()', done => { + expect.assertions(1) // await whenReady() logger.info('puts a true and reads it with once()') const a = words() @@ -74,7 +76,8 @@ describe('gun smith', () => { ) }) - it('puts a false and reads it with once()', async function(done) { + it('puts a false and reads it with once()', async done => { + expect.assertions(1) await whenReady() logger.info('puts a false and reads it with once()') const a = words()