Skip to content

Commit 4a0ad4b

Browse files
committed
maint(core base): Un-underscore core.base tests.
1 parent cd9c00d commit 4a0ad4b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/core/base.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import registry from "./registry";
22
import $ from "jquery";
33
import Base from "./base";
44
import utils from "./utils";
5-
import _ from "underscore";
65
import { jest } from "@jest/globals";
76

87
describe("pat-base: The Base class for patterns", function () {
@@ -23,7 +22,7 @@ describe("pat-base: The Base class for patterns", function () {
2322
some: "thing",
2423
init: function () {
2524
expect(this.$el.hasClass("pat-example")).toEqual(true);
26-
expect(_.includes(_.keys(this.options), "option")).toBeTruthy();
25+
expect(Object.keys(this.options).includes("option")).toBeTruthy();
2726
this.extra();
2827
},
2928
extra: function () {
@@ -69,7 +68,7 @@ describe("pat-base: The Base class for patterns", function () {
6968
expect(NewPattern.prototype.name).toEqual("example");
7069
expect(registry.register).toHaveBeenCalled();
7170
expect(Object.keys(registry.patterns).length).toEqual(1);
72-
expect(_.includes(_.keys(registry.patterns), "example")).toBeTruthy();
71+
expect(Object.keys(registry.patterns).includes("example")).toBeTruthy();
7372
});
7473

7574
it('will not automatically register a pattern without a "name" attribute', function () {

0 commit comments

Comments
 (0)