MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / makeBaseDeps

Function makeBaseDeps

src/hooks/fileDropzoneLocalSources.test.ts:14–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12} from './fileDropzoneLocalSources';
13
14function makeBaseDeps() {
15 return {
16 isLoading: vi.fn(() => false),
17 setUrlLoading: vi.fn(),
18 setUrlProgress: vi.fn(),
19 setError: vi.fn(),
20 setSourceInfo: vi.fn(),
21 clearCaches: vi.fn(),
22 processFiles: vi.fn(async () => {}),
23 waitForPaint: vi.fn(async () => {}),
24 log: vi.fn(),
25 errorLog: vi.fn(),
26 };
27}
28
29describe('file dropzone local source loading', () => {
30 it('ignores duplicate local ZIP loads while another load is active', async () => {

Calls

no outgoing calls

Tested by

no test coverage detected