Skip to content

Commit 66457bb

Browse files
committed
chore(webapp): oxfmt test files
1 parent 39e4650 commit 66457bb

5 files changed

Lines changed: 28 additions & 13 deletions

apps/webapp/test/apiWaitpointPresenter.readthrough.test.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ describe("ApiWaitpointPresenter read-through (heterogeneous legacy + new Postgre
152152
undefined,
153153
undefined,
154154
undefined,
155-
makeRunStore(newClient.handle as unknown as PrismaClient, legacy.handle as unknown as PrismaClient)
155+
makeRunStore(
156+
newClient.handle as unknown as PrismaClient,
157+
legacy.handle as unknown as PrismaClient
158+
)
156159
);
157160

158161
const result = await presenter.call(environmentArg(environment), id);
@@ -189,7 +192,10 @@ describe("ApiWaitpointPresenter read-through (heterogeneous legacy + new Postgre
189192
undefined,
190193
undefined,
191194
undefined,
192-
makeRunStore(newClient.handle as unknown as PrismaClient, legacy.handle as unknown as PrismaClient)
195+
makeRunStore(
196+
newClient.handle as unknown as PrismaClient,
197+
legacy.handle as unknown as PrismaClient
198+
)
193199
);
194200

195201
const result = await presenter.call(environmentArg(environment), id);
@@ -324,7 +330,10 @@ describe("ApiWaitpointPresenter read-through (dedicated scalar-only run-ops NEW
324330
undefined,
325331
undefined,
326332
undefined,
327-
makeRunStore(newClient.handle as unknown as PrismaClient, legacy.handle as unknown as PrismaClient)
333+
makeRunStore(
334+
newClient.handle as unknown as PrismaClient,
335+
legacy.handle as unknown as PrismaClient
336+
)
328337
);
329338

330339
// Must NOT throw PrismaClientValidationError; resolves the token off the legacy side.
@@ -362,7 +371,10 @@ describe("ApiWaitpointPresenter passthrough (single-DB)", () => {
362371
prisma,
363372
prisma,
364373
undefined,
365-
makeRunStore(single.handle as unknown as PrismaClient, legacy.handle as unknown as PrismaClient)
374+
makeRunStore(
375+
single.handle as unknown as PrismaClient,
376+
legacy.handle as unknown as PrismaClient
377+
)
366378
);
367379

368380
const result = await presenter.call(environmentArg(environment), id);

apps/webapp/test/runsReplicationService.part9.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ describe("RunsReplicationService (part 9/9) - per-source replication-lag attribu
131131
);
132132

133133
// An unrelated metric so the readers must walk past non-matching entries in the tree.
134-
const batchesFlushed = metricsHelper.meter.createCounter(
135-
"runs_replication.batches_flushed"
136-
);
134+
const batchesFlushed = metricsHelper.meter.createCounter("runs_replication.batches_flushed");
137135
batchesFlushed.add(1, { source: "legacy" });
138136

139137
// Two producer identities fan into the same histogram; distinct attribute sets produce

apps/webapp/test/waitpointListPresenter.readroute.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,12 @@ describe("WaitpointListPresenter read-route", () => {
197197

198198
// Single-DB deployment: both run-store legs point at the same container client, so the
199199
// mandatory NEW+LEGACY fan-out in findManyWaitpoints reads one DB and de-dupes by id.
200-
const presenter = new WaitpointListPresenter(prisma, prisma, undefined, makeRunStore(prisma, prisma));
200+
const presenter = new WaitpointListPresenter(
201+
prisma,
202+
prisma,
203+
undefined,
204+
makeRunStore(prisma, prisma)
205+
);
201206
const result = await presenter.call(baseOptions(ctx.environmentId, { pageSize: 2 }));
202207

203208
expect(result.success).toBe(true);

apps/webapp/test/waitpointPresenter.readthrough.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,10 @@ describe("WaitpointPresenter dual-DB read-through (hetero PG14 + PG17, no connec
290290
newClient: newClient.handle,
291291
legacyReplica: legacy.handle,
292292
},
293-
makeRunStore(newClient.handle as unknown as PrismaClient, legacy.handle as unknown as PrismaClient)
293+
makeRunStore(
294+
newClient.handle as unknown as PrismaClient,
295+
legacy.handle as unknown as PrismaClient
296+
)
294297
);
295298

296299
const result = await presenter.call(callArgs(ctx, seeded.friendlyId));

apps/webapp/test/waitpointTagListPresenter.readroute.test.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,7 @@ vi.setConfig({ testTimeout: 120_000 });
2929
// container DBs (NEW=dedicated, LEGACY=legacy) instead of the default localhost:5432 client.
3030
// In single-DB passthrough both legs point at the same client (a no-op fan-out that de-dupes
3131
// back to one DB's rows), mirroring production single-DB deployments.
32-
function makeRunStore(
33-
newClient: PrismaClient,
34-
legacyClient: PrismaClient
35-
): RoutingRunStore {
32+
function makeRunStore(newClient: PrismaClient, legacyClient: PrismaClient): RoutingRunStore {
3633
return new RoutingRunStore({
3734
new: new PostgresRunStore({
3835
prisma: newClient as never,

0 commit comments

Comments
 (0)