aboutsummaryrefslogtreecommitdiff
path: root/src/utils/boolean.test.ts
diff options
context:
space:
mode:
authorGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2022-08-18 10:53:23 +0200
committerGravatar Corentin Thomasset <corentin.thomasset74@gmail.com> 2022-08-18 10:53:23 +0200
commit49755909bdaea9399e51b67fbd1a6d071acd3182 (patch)
treeb7af979e890efe31b1f71ac0333a3e0f4d98b695 /src/utils/boolean.test.ts
parent44d653b1f2fe6ea1fb820bf1a7479089744568cf (diff)
downloadit-tools-49755909bdaea9399e51b67fbd1a6d071acd3182.tar.gz
it-tools-49755909bdaea9399e51b67fbd1a6d071acd3182.tar.zst
it-tools-49755909bdaea9399e51b67fbd1a6d071acd3182.zip
fix(deps): added missing optional deps
Diffstat (limited to 'src/utils/boolean.test.ts')
-rw-r--r--src/utils/boolean.test.ts3
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();