Skip to content

Commit 4255427

Browse files
committed
test: add utils test suite
1 parent f554497 commit 4255427

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/utils.test.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import {
2+
vi,
3+
test,
4+
expect,
5+
describe,
6+
} from 'vitest';
7+
8+
import { graceful } from '../lib/utils';
9+
10+
describe('Graceful', () => {
11+
test('Execute graceful', () => {
12+
const fn = vi.fn();
13+
graceful(fn);
14+
expect(fn).toBeCalled();
15+
});
16+
});

0 commit comments

Comments
 (0)