Skip to content

Commit

Permalink
Revert "adjust parameter tests for RE2 regexes"
Browse files Browse the repository at this point in the history
This reverts commit 7193c9d.
  • Loading branch information
Supinic committed Apr 5, 2024
1 parent b440917 commit 5d31ded
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/classes/command/parameters.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const assert = require("assert");
const Command = require("../../../classes/command");
const RE2 = require("re2");

beforeEach(async() => {
const DateModule = await import("supi-core/objects/date.js");
Expand Down Expand Up @@ -41,7 +40,7 @@ describe("Command parameter parsing", () => {
assert.notStrictEqual(value, undefined, "Parsed param must not be undefined");

if (type === "regex") {
assert.strictEqual(value instanceof RE2, true, "Regex-type param must be instanceof RegExp");
assert.strictEqual(value instanceof RegExp, true, "Regex-type param must be instanceof RegExp");
}
else if (type === "date") {
assert.strictEqual(value instanceof sb.Date, true, "Date-type param must be instanceof sb.Date");
Expand Down

0 comments on commit 5d31ded

Please sign in to comment.