Skip to content

Commit 96f6f4a

Browse files
committed
test: start tests for table uplaod
1 parent bb98e7a commit 96f6f4a

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

apps/web/src/hooks/__tests__/useInstrumentVisualization.test.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1+
// import { MockFactory } from '@douglasneuroinformatics/libnest/testing';
2+
// import type { MockedInstance } from '@douglasneuroinformatics/libnest/testing';
3+
import { describe, it, vi, expect, beforeEach } from 'vitest';
14
import { useInstrumentVisualization } from '../useInstrumentVisualization';
2-
import { describe, expect, it } from 'vitest';
35

4-
describe('dl', () => {
6+
describe('useInstrumentVisualization tests', () => {
57
describe('CSV', () => {
68
it('Should download', () => {
7-
const { dl } = useInstrumentVisualization({
9+
const { dl, records } = useInstrumentVisualization({
810
params: { subjectId: 'testId' }
911
});
12+
expect(records).toBeDefined();
13+
console.log(records);
1014
dl('CSV');
1115
});
1216
});

0 commit comments

Comments
 (0)