diff options
Diffstat (limited to 'src/utils/boolean.test.ts')
-rw-r--r-- | src/utils/boolean.test.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/boolean.test.ts b/src/utils/boolean.test.ts index 20b8e33..57ca10a 100644 --- a/src/utils/boolean.test.ts +++ b/src/utils/boolean.test.ts @@ -1,10 +1,11 @@ +import _ from 'lodash'; import { describe, expect, it } from 'vitest'; import { isNotThrowing } from './boolean'; describe('boolean utils', () => { describe('isNotThrowing', () => { it('should return if the call throws or false otherwise', () => { - expect(isNotThrowing(() => {})).to.eql(true); + expect(isNotThrowing(_.noop)).to.eql(true); expect( isNotThrowing(() => { throw new Error(); |