Skip to content

Commit

Permalink
style: simplify mock expectAssignable<ModuleOptions<string>>(credenti…
Browse files Browse the repository at this point in the history
…als)
  • Loading branch information
RodrigoDornelles committed Apr 22, 2024
1 parent f888052 commit 6688984
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions types/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ expectType<string[]>(tags);
expectType<Credentials>(credentials);

// Ensure duplicayed simple-oauth2 are compatible with simple-oauth2
const mockcredentials = {auth: {tokenHost: ''}, ...credentials };
expectAssignable<ModuleOptions<string>>(mockcredentials);
expectAssignable<ModuleOptions<string>>({auth: {tokenHost: ''}, ...credentials });
expectAssignable<ModuleOptions["auth"]>(auth);
// Ensure published types of simple-oauth2 are accepted
expectAssignable<Credentials>(simpleOauth2Options);
Expand Down

0 comments on commit 6688984

Please sign in to comment.