expect.assertions()

This commit is contained in:
Daniel Lugo 2021-09-17 15:33:13 -04:00
parent b075c77d27
commit 7536574ac0

View file

@ -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()