mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-10-25 00:37:44 +00:00
Review
This commit is contained in:
1 parent
0a4c5102bd
commit
8bd9170ab9
9 files changed
+106
-272
No files matched your search
@@ -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