This commit is contained in:
Zanie Blue
2026-01-22 07:57:07 -06:00
parent 0a4c5102bd
commit 8bd9170ab9
9 changed files with 106 additions and 272 deletions

View File

@@ -23,13 +23,12 @@ function createMockResponse(
statusText: string,
data: string,
) {
const encoder = new TextEncoder();
const body = {
async *[Symbol.asyncIterator]() {
yield encoder.encode(data);
},
return {
ok,
status,
statusText,
text: async () => data,
};
return { body, ok, status, statusText };
}
describe("versions-client", () => {