mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-26 01:36:15 -04:00
fix(deps): added missing optional deps
This commit is contained in:
parent
44d653b1f2
commit
49755909bd
3 changed files with 9 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue