Fix linter errors
This commit is contained in:
parent
5f644f971e
commit
10695e6a20
46 changed files with 93 additions and 62 deletions
2
lib/config-utils.test.js
generated
2
lib/config-utils.test.js
generated
|
|
@ -64,6 +64,7 @@ function mockGetContents(content) {
|
|||
};
|
||||
const spyGetContents = sinon
|
||||
.stub(client.repos, "getContent")
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||
.resolves(response);
|
||||
sinon.stub(api, "getApiClient").value(() => client);
|
||||
sinon.stub(api, "getApiClientWithExternalAuth").value(() => client);
|
||||
|
|
@ -78,6 +79,7 @@ function mockListLanguages(languages) {
|
|||
for (const language of languages) {
|
||||
response.data[language] = 123;
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
||||
sinon.stub(client.repos, "listLanguages").resolves(response);
|
||||
sinon.stub(api, "getApiClient").value(() => client);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue