style: format the new area and place-search tests

This commit is contained in:
Sameh Khamis committed 2026-11-03 09:32:03 -08:00
1 parent f675938412
commit 4f95763a28
2 files changed
+17 -5

No files matched your search

+5 -2
View File
@@ -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');
});