Skip to content

Commit

Permalink
fixup! feat!: add proposal for new discovery API
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Sep 19, 2023
1 parent 513cb47 commit 2d72629
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/core/test/ClientTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ class TDClient implements ProtocolClient {
return "TDClient";
}

discoverDirectly(uri: string): Promise<Content> {
return Promise.reject(new Error("discoverDirectly not implemented"));
async discoverDirectly(uri: string): Promise<Content> {
throw new Error("discoverDirectly not implemented.");
}
}

Expand Down Expand Up @@ -248,8 +248,8 @@ class TrapClient implements ProtocolClient {

public setSecurity = (metadata: SecurityScheme[]) => false;

discoverDirectly(uri: string): Promise<Content> {
return Promise.reject(new Error("discoverDirectly not implemented"));
async discoverDirectly(uri: string): Promise<Content> {
throw new Error("discoverDirectly not implemented.");
}
}

Expand Down Expand Up @@ -319,8 +319,8 @@ class TestProtocolClient implements ProtocolClient {
return true;
}

discoverDirectly(uri: string): Promise<Content> {
return Promise.reject(new Error("discoverDirectly not implemented"));
async discoverDirectly(uri: string): Promise<Content> {
throw new Error("discoverDirectly not implemented.");
}
}

Expand Down

0 comments on commit 2d72629

Please sign in to comment.