fix: 执行请求时this上下文指向错误 #31
Annotations
27 errors
test/lib/generate-template.test.ts > 完整的类型提示:
test/lib/generate-template.test.ts#L129
Error: Snapshot `完整的类型提示 2` mismatched
- Expected
+ Received
@@ -51,14 +51,14 @@
}>;
}
",
"js": "var OpenapiClient = class extends BaseOpenapiClient {
default = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request("/users", "get", opts);
},
- getUsersId(opts) {
+ getUsersId: (opts) => {
return this.request("/users/{id}", "get", opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:129:3
|
test/lib/generate-template.test.ts > 类 > 命名空间:
test/lib/generate-template.test.ts#L510
Error: Snapshot `类 > 命名空间 2` mismatched
- Expected
+ Received
@@ -1,16 +1,16 @@
"var Client = class extends BaseOpenapiClient {
user = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
- patchUsers(opts) {
+ patchUsers: (opts) => {
return this.request('/', 'patch', opts);
},
};
public = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:510:5
|
test (ubuntu-latest, 20)
Process completed with exit code 1.
|
test/lib/generate-template.test.ts > 完整的类型提示:
test/lib/generate-template.test.ts#L129
Error: Snapshot `完整的类型提示 2` mismatched
- Expected
+ Received
@@ -51,14 +51,14 @@
}>;
}
",
"js": "var OpenapiClient = class extends BaseOpenapiClient {
default = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request("/users", "get", opts);
},
- getUsersId(opts) {
+ getUsersId: (opts) => {
return this.request("/users/{id}", "get", opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:129:3
|
test/lib/generate-template.test.ts > 类 > 命名空间:
test/lib/generate-template.test.ts#L510
Error: Snapshot `类 > 命名空间 2` mismatched
- Expected
+ Received
@@ -1,16 +1,16 @@
"var Client = class extends BaseOpenapiClient {
user = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
- patchUsers(opts) {
+ patchUsers: (opts) => {
return this.request('/', 'patch', opts);
},
};
public = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:510:5
|
test (macos-latest, 20)
Process completed with exit code 1.
|
test/lib/generate-template.test.ts > 完整的类型提示:
test/lib/generate-template.test.ts#L129
Error: Snapshot `完整的类型提示 2` mismatched
- Expected
+ Received
@@ -51,14 +51,14 @@
}>;
}
",
"js": "var OpenapiClient = class extends BaseOpenapiClient {
default = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request("/users", "get", opts);
},
- getUsersId(opts) {
+ getUsersId: (opts) => {
return this.request("/users/{id}", "get", opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:129:3
|
test/lib/generate-template.test.ts > 类 > 命名空间:
test/lib/generate-template.test.ts#L510
Error: Snapshot `类 > 命名空间 2` mismatched
- Expected
+ Received
@@ -1,16 +1,16 @@
"var Client = class extends BaseOpenapiClient {
user = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
- patchUsers(opts) {
+ patchUsers: (opts) => {
return this.request('/', 'patch', opts);
},
};
public = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:510:5
|
test (macos-latest, 18)
Process completed with exit code 1.
|
test/lib/generate-template.test.ts > 完整的类型提示:
test/lib/generate-template.test.ts#L129
Error: Snapshot `完整的类型提示 2` mismatched
- Expected
+ Received
@@ -51,14 +51,14 @@
}>;
}
",
"js": "var OpenapiClient = class extends BaseOpenapiClient {
default = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request("/users", "get", opts);
},
- getUsersId(opts) {
+ getUsersId: (opts) => {
return this.request("/users/{id}", "get", opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:129:3
|
test/lib/generate-template.test.ts > 类 > 命名空间:
test/lib/generate-template.test.ts#L510
Error: Snapshot `类 > 命名空间 2` mismatched
- Expected
+ Received
@@ -1,16 +1,16 @@
"var Client = class extends BaseOpenapiClient {
user = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
- patchUsers(opts) {
+ patchUsers: (opts) => {
return this.request('/', 'patch', opts);
},
};
public = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:510:5
|
test (ubuntu-latest, 22)
Process completed with exit code 1.
|
test/lib/generate-template.test.ts > 完整的类型提示:
test/lib/generate-template.test.ts#L129
Error: Snapshot `完整的类型提示 2` mismatched
- Expected
+ Received
@@ -51,14 +51,14 @@
}>;
}
",
"js": "var OpenapiClient = class extends BaseOpenapiClient {
default = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request("/users", "get", opts);
},
- getUsersId(opts) {
+ getUsersId: (opts) => {
return this.request("/users/{id}", "get", opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:129:3
|
test/lib/generate-template.test.ts > 类 > 命名空间:
test/lib/generate-template.test.ts#L510
Error: Snapshot `类 > 命名空间 2` mismatched
- Expected
+ Received
@@ -1,16 +1,16 @@
"var Client = class extends BaseOpenapiClient {
user = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
- patchUsers(opts) {
+ patchUsers: (opts) => {
return this.request('/', 'patch', opts);
},
};
public = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:510:5
|
test (macos-latest, 22)
Process completed with exit code 1.
|
test/lib/generate-template.test.ts > 完整的类型提示:
test/lib/generate-template.test.ts#L129
Error: Snapshot `完整的类型提示 2` mismatched
- Expected
+ Received
@@ -51,14 +51,14 @@
}>;
}
",
"js": "var OpenapiClient = class extends BaseOpenapiClient {
default = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request("/users", "get", opts);
},
- getUsersId(opts) {
+ getUsersId: (opts) => {
return this.request("/users/{id}", "get", opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:129:3
|
test/lib/generate-template.test.ts > 类 > 命名空间:
test/lib/generate-template.test.ts#L510
Error: Snapshot `类 > 命名空间 2` mismatched
- Expected
+ Received
@@ -1,16 +1,16 @@
"var Client = class extends BaseOpenapiClient {
user = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
- patchUsers(opts) {
+ patchUsers: (opts) => {
return this.request('/', 'patch', opts);
},
};
public = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:510:5
|
test (ubuntu-latest, 18)
Process completed with exit code 1.
|
test/lib/generate-template.test.ts > 完整的类型提示:
test/lib/generate-template.test.ts#L129
Error: Snapshot `完整的类型提示 2` mismatched
- Expected
+ Received
@@ -51,14 +51,14 @@
}>;
}
",
"js": "var OpenapiClient = class extends BaseOpenapiClient {
default = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request("/users", "get", opts);
},
- getUsersId(opts) {
+ getUsersId: (opts) => {
return this.request("/users/{id}", "get", opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:129:3
|
test/lib/generate-template.test.ts > 类 > 命名空间:
test/lib/generate-template.test.ts#L510
Error: Snapshot `类 > 命名空间 2` mismatched
- Expected
+ Received
@@ -1,16 +1,16 @@
"var Client = class extends BaseOpenapiClient {
user = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
- patchUsers(opts) {
+ patchUsers: (opts) => {
return this.request('/', 'patch', opts);
},
};
public = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:510:5
|
test (windows-latest, 20)
Process completed with exit code 1.
|
test/lib/generate-template.test.ts > 完整的类型提示:
test/lib/generate-template.test.ts#L129
Error: Snapshot `完整的类型提示 2` mismatched
- Expected
+ Received
@@ -51,14 +51,14 @@
}>;
}
",
"js": "var OpenapiClient = class extends BaseOpenapiClient {
default = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request("/users", "get", opts);
},
- getUsersId(opts) {
+ getUsersId: (opts) => {
return this.request("/users/{id}", "get", opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:129:3
|
test/lib/generate-template.test.ts > 类 > 命名空间:
test/lib/generate-template.test.ts#L510
Error: Snapshot `类 > 命名空间 2` mismatched
- Expected
+ Received
@@ -1,16 +1,16 @@
"var Client = class extends BaseOpenapiClient {
user = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
- patchUsers(opts) {
+ patchUsers: (opts) => {
return this.request('/', 'patch', opts);
},
};
public = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:510:5
|
test (windows-latest, 22)
Process completed with exit code 1.
|
test/lib/generate-template.test.ts > 完整的类型提示:
test/lib/generate-template.test.ts#L129
Error: Snapshot `完整的类型提示 2` mismatched
- Expected
+ Received
@@ -51,14 +51,14 @@
}>;
}
",
"js": "var OpenapiClient = class extends BaseOpenapiClient {
default = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request("/users", "get", opts);
},
- getUsersId(opts) {
+ getUsersId: (opts) => {
return this.request("/users/{id}", "get", opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:129:3
|
test/lib/generate-template.test.ts > 类 > 命名空间:
test/lib/generate-template.test.ts#L510
Error: Snapshot `类 > 命名空间 2` mismatched
- Expected
+ Received
@@ -1,16 +1,16 @@
"var Client = class extends BaseOpenapiClient {
user = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
- patchUsers(opts) {
+ patchUsers: (opts) => {
return this.request('/', 'patch', opts);
},
};
public = {
- getUsers(opts) {
+ getUsers: (opts) => {
return this.request('/', 'get', opts);
},
};
getContentTypes(uri, method) {
❯ test/lib/generate-template.test.ts:510:5
|
test (windows-latest, 18)
Process completed with exit code 1.
|