Track advert path and use in mesh visualizer

This commit is contained in:
Jack Kingsman
2026-02-24 08:24:34 -08:00
parent c25b21469e
commit c30ed0b4bc
15 changed files with 579 additions and 33 deletions
+13
View File
@@ -106,6 +106,19 @@ describe('fetchJson (via api methods)', () => {
const [url] = mockFetch.mock.calls[0];
expect(url).toBe('/api/contacts?limit=100&offset=0');
});
it('builds repeater advert path endpoint query', async () => {
installMockFetch();
mockFetch.mockResolvedValueOnce({
ok: true,
json: () => Promise.resolve([]),
});
await api.getRepeaterAdvertPaths(12);
const [url] = mockFetch.mock.calls[0];
expect(url).toBe('/api/contacts/repeaters/advert-paths?limit_per_repeater=12');
});
});
describe('error handling', () => {