mirror of
https://github.com/Art051/it-tools.git
synced 2025-08-11 19:29:03 +00:00
fix(deps): added missing optional deps
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user