Skip to content

Commit 29afdc6

Browse files
chore(lint): reformat one test for the vite-plus 0.3.3 formatter
The bumped formatter wraps a chained spyOn call differently. No code change. Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent a9ffc90 commit 29afdc6

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

‎apps/server/src/provider/Layers/OpenCodeAdapter.test.ts‎

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7155,27 +7155,27 @@ it.layer(OpenCodeAdapterTestLayer)("OpenCodeAdapterLive", (it) => {
71557155
const values = Map.prototype.values;
71567156
yield* Effect.acquireRelease(
71577157
Effect.sync(() =>
7158-
vi
7159-
.spyOn(Map.prototype, "values")
7160-
.mockImplementation(function (this: Map<unknown, unknown>) {
7161-
const iterator = values.call(this);
7162-
const next = iterator.next.bind(iterator);
7163-
iterator.next = () => {
7164-
const result = next();
7165-
const value: unknown = result.value;
7166-
if (
7167-
typeof value === "object" &&
7168-
value !== null &&
7169-
"id" in value &&
7170-
typeof value.id === "string" &&
7171-
value.id.startsWith("history-part-")
7172-
) {
7173-
visitedHistoryParts += 1;
7174-
}
7175-
return result;
7176-
};
7177-
return iterator;
7178-
}),
7158+
vi.spyOn(Map.prototype, "values").mockImplementation(function (
7159+
this: Map<unknown, unknown>,
7160+
) {
7161+
const iterator = values.call(this);
7162+
const next = iterator.next.bind(iterator);
7163+
iterator.next = () => {
7164+
const result = next();
7165+
const value: unknown = result.value;
7166+
if (
7167+
typeof value === "object" &&
7168+
value !== null &&
7169+
"id" in value &&
7170+
typeof value.id === "string" &&
7171+
value.id.startsWith("history-part-")
7172+
) {
7173+
visitedHistoryParts += 1;
7174+
}
7175+
return result;
7176+
};
7177+
return iterator;
7178+
}),
71797179
),
71807180
(spy) => Effect.sync(() => spy.mockRestore()),
71817181
);

0 commit comments

Comments
 (0)