Merge pull request #2039 from modelcontextprotocol/v2/chore/1959-no-floating-promises
chore(lint): enable @typescript-eslint/no-floating-promises in all five ESLint scopes
This commit is contained in:
commit
405d0f4d0d
2 changed files with 656 additions and 113 deletions
|
|
@ -117,12 +117,12 @@ describe("EmaTransportOAuthProvider", () => {
|
|||
expect(await provider.clientInformation()).toEqual({ client_id: "abc" });
|
||||
expect(await provider.codeVerifier()).toBe("verifier-xyz");
|
||||
|
||||
provider.saveClientInformation({ client_id: "new" } as never);
|
||||
await provider.saveClientInformation({ client_id: "new" } as never);
|
||||
expect(inner.saveClientInformation).toHaveBeenCalledWith({
|
||||
client_id: "new",
|
||||
});
|
||||
|
||||
provider.saveCodeVerifier("cv");
|
||||
await provider.saveCodeVerifier("cv");
|
||||
expect(inner.saveCodeVerifier).toHaveBeenCalledWith("cv");
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -1588,7 +1588,7 @@ describe("OAuthManager", () => {
|
|||
});
|
||||
|
||||
const provider = await manager.createOAuthProviderForTransport();
|
||||
provider.redirectToAuthorization(
|
||||
await provider.redirectToAuthorization(
|
||||
new URL("https://as.example.com/authorize?client_id=abc&state=xyz"),
|
||||
);
|
||||
|
||||
|
|
@ -1610,7 +1610,7 @@ describe("OAuthManager", () => {
|
|||
});
|
||||
|
||||
const provider = await manager.createOAuthProviderForTransport();
|
||||
provider.redirectToAuthorization(
|
||||
await provider.redirectToAuthorization(
|
||||
new URL("https://as.example.com/authorize?client_id=abc&state=xyz"),
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue