mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-01-25 13:12:21 +00:00
Review
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user