import test from 'node:test' import assert from 'node:assert/strict' import { readFile } from 'node:fs/promises' import { loadingPhotoSlots, normalizeLoadingDocuments, getLoadingDocuments, bindLoadingPhoto, uploadLoadingPhoto } from '../src/api/dispatch-loading-documents.js' import { session } from '../src/stores/session.js' const source = (await readFile(new URL('../src/components/DispatchLoadingDocuments.vue', import.meta.url), 'utf8')).match(/