fix(deps): added missing optional deps

This commit is contained in:
Corentin Thomasset 2022-08-18 10:53:23 +02:00
parent 44d653b1f2
commit 49755909bd
No known key found for this signature in database
GPG key ID: 3103EB5E79496F9C
3 changed files with 9 additions and 3 deletions

View file

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