Skip to content

Commit

Permalink
Inverse the test case
Browse files Browse the repository at this point in the history
Fixes #1
  • Loading branch information
thewilloftheshadow committed Aug 31, 2021
1 parent 7d6bd30 commit 81db2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AmariBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class AmariBot {
if (typeof token !== "string") throw new TypeError("The API token must be a string")
if (typeof options !== "object") throw new TypeError("options must be an object")
if (options.baseURL !== undefined && typeof options.baseURL !== "string") throw new TypeError("baseURL must be a string")
if (options.baseURL !== undefined && options.baseURL.endsWith("/")) throw new Error("baseURL must end with a /")
if (options.baseURL !== undefined && !options.baseURL.endsWith("/")) throw new Error("baseURL must end with a /")
if (options.version !== undefined && typeof options.version !== "string") throw new TypeError("version must be a string")
if (options.debug !== undefined && typeof options.debug !== "boolean") throw new TypeError("options.debug must be a boolean")
if (options.rawRoutes !== undefined && typeof options.debug !== "boolean") throw new TypeError("options.rawRoutes must be a boolean")
Expand Down

0 comments on commit 81db2e3

Please sign in to comment.