Skip to content

Commit

Permalink
Fixed URL path for joesandbox. (#848)
Browse files Browse the repository at this point in the history
* Fixed URL path for joesandbox.

* Updated test
  • Loading branch information
t-mtsmt authored Nov 19, 2024
1 parent 31a9960 commit bad9545
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/searcher/joesandbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ export class JoeSandbox extends Base {
}

public searchByHash(query: string) {
return ok(buildURL(this.baseURL, `/search`, { q: query }));
return ok(buildURL(this.baseURL, `/analysis/search`, { q: query }));
}
}
2 changes: 1 addition & 1 deletion tests/searcher/joesandbox.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe("JoeSandbox", function () {
const hash = "44d88612fea8a8f36de82e1278abb02f";
it("should return a URL", function () {
expect(subject.searchByHash(hash)._unsafeUnwrap()).toBe(
`https://www.joesandbox.com/search?q=${hash}`,
`https://www.joesandbox.com/analysis/search?q=${hash}`,
);
});
});
Expand Down

0 comments on commit bad9545

Please sign in to comment.