mirror of
https://github.com/discountry/ritmex-bot.git
synced 2026-09-09 08:18:07 +00:00
feat(exchanges): add Ondo Perps exchange adapter
This commit is contained in:
@@ -81,6 +81,16 @@ describe("command parser", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("parses the Ondo Perps exchange alias", () => {
|
||||
for (const exchange of ["ondoperps", "ondoperp"]) {
|
||||
const command = parseCommandArgv(["exchange", "capabilities", "--exchange", exchange]);
|
||||
expect(command).toMatchObject({
|
||||
kind: "exchange-capabilities",
|
||||
exchange: "ondoperps",
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
it("throws for unsupported option", () => {
|
||||
expect(() => parseCommandArgv(["doctor", "--unknown"])).toThrow(CommandParseError);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user