Skip to content

Commit 5faec93

Browse files
committed
maint(core parser): Un-underscore core.parser tests.
1 parent 4a0ad4b commit 5faec93

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/core/parser.test.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import _ from "underscore";
21
import $ from "jquery";
32
import ArgumentParser from "./parser";
43
import { jest } from "@jest/globals";
@@ -29,9 +28,7 @@ describe("The Patterns parser", function () {
2928
expect(parser.parameters.color.value).toBe("red");
3029

3130
parser.addJSONArgument("color", { color: "red" });
32-
expect(
33-
_.isEqual(parser.parameters.color.value, { color: "red" })
34-
).toBeTruthy();
31+
expect(parser.parameters.color.value).toEqual({ color: "red" });
3532
});
3633

3734
it("preserves the argument order", function () {
@@ -205,7 +202,7 @@ describe("The Patterns parser", function () {
205202
var parser = new ArgumentParser();
206203
parser.addJSONArgument("json-color", { color: "red" });
207204
var opts = parser._parse('json-color: {"color": "pink"}');
208-
expect(_.isEqual(opts["json-color"], { color: "pink" })).toBeTruthy();
205+
expect(opts["json-color"]).toEqual({ color: "pink" });
209206
});
210207

211208
describe("JSON data attributes", function () {

0 commit comments

Comments
 (0)