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 Nov 7, 2022
1 parent c6d81a1 commit f5ddbeb
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 @@ -171,8 +171,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 @@ -249,8 +249,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 @@ -316,8 +316,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 f5ddbeb

Please sign in to comment.