From 4f95763a2882e8c6bb09a2dcf1b90c2363c495fd Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Tue, 3 Nov 2026 09:32:03 -0800 Subject: [PATCH] style: format the new area and place-search tests --- src/data/areaResolver.test.mjs | 7 +++++-- src/voice/osmActions.test.mjs | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/data/areaResolver.test.mjs b/src/data/areaResolver.test.mjs index f38f1448e..cb09f1a87 100644 --- a/src/data/areaResolver.test.mjs +++ b/src/data/areaResolver.test.mjs @@ -556,7 +556,7 @@ test('distinct area lookups are hard-bounded while same-key callers still coales assert.equal(b.ok, true); }); -test('settled lookups leave no listener on the caller\'s signal', async () => { +test("settled lookups leave no listener on the caller's signal", async () => { const { resolver } = makeResolver(); const controller = new AbortController(); let added = 0; @@ -581,7 +581,10 @@ test('settled lookups leave no listener on the caller\'s signal', async () => { aborted.addEventListener = () => { attached += 1; }; - const late = await resolver.resolve({ query: 'Punjab, Pakistan' }, { signal: aborted }); + const late = await resolver.resolve( + { query: 'Punjab, Pakistan' }, + { signal: aborted }, + ); assert.equal(late.code, 'CANCELLED'); assert.equal(attached, 0, 'an aborted signal gets no listener'); }); diff --git a/src/voice/osmActions.test.mjs b/src/voice/osmActions.test.mjs index fa0760a62..3ccf3546f 100644 --- a/src/voice/osmActions.test.mjs +++ b/src/voice/osmActions.test.mjs @@ -374,7 +374,10 @@ test('a capped list stays incomplete through analyst follow-ups', async () => { filters: [{ field: 'emergency', op: 'eq', value: 'yes' }], }); // And a follow-up of the follow-up. - const again = await engine.query({ layers: ['osm-places'], followUp: true }); + const again = await engine.query({ + layers: ['osm-places'], + followUp: true, + }); return { first, followUp, again }; }; const capped = await run(true); @@ -382,10 +385,16 @@ test('a capped list stays incomplete through analyst follow-ups', async () => { assert.equal(capped.followUp.ok, true); assert.equal(capped.followUp.count, 1); assert.equal(capped.followUp.complete, false, 'the count is a floor'); - assert.equal(capped.followUp.display.caveat, 'listed the first 1; there are more'); + assert.equal( + capped.followUp.display.caveat, + 'listed the first 1; there are more', + ); assert.equal(capped.followUp.scopeLabel, 'inside Kathmandu'); assert.equal(capped.again.complete, false); - assert.equal(capped.again.display.caveat, 'listed the first 1; there are more'); + assert.equal( + capped.again.display.caveat, + 'listed the first 1; there are more', + ); const whole = await run(false); assert.equal(whole.first.complete, true);