File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import registry from "./registry";
22import $ from "jquery" ;
33import Base from "./base" ;
44import utils from "./utils" ;
5- import _ from "underscore" ;
65import { jest } from "@jest/globals" ;
76
87describe ( "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 ( ) {
You can’t perform that action at this time.
0 commit comments