Skip to content

Commit 0402f1f

Browse files
committed
refactor: replace lodash with es-toolkit
1 parent 707e647 commit 0402f1f

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
"aria-query": "^5.0.0",
8585
"css.escape": "^1.5.1",
8686
"dom-accessibility-api": "^0.6.3",
87-
"lodash": "^4.17.21",
87+
"es-toolkit": "^1.39.8",
8888
"picocolors": "^1.1.1",
8989
"redent": "^3.0.0"
9090
},

src/to-have-form-values.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import isEqualWith from 'lodash/isEqualWith.js'
1+
import {isEqualWith} from 'es-toolkit'
22
import escape from 'css.escape'
33
import {
44
checkHtmlElement,

src/to-have-selection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import isEqualWith from 'lodash/isEqualWith.js'
1+
import {isEqualWith} from 'es-toolkit'
22
import {checkHtmlElement, compareArraysAsSet, getMessage} from './utils'
33

44
/**
55
* Returns the selection from the element.
6-
*
6+
*
77
* @param element {HTMLElement} The element to get the selection from.
88
* @returns {String} The selection.
99
*/

src/to-have-value.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import isEqualWith from 'lodash/isEqualWith.js'
1+
import {isEqualWith} from 'es-toolkit'
22
import {
33
checkHtmlElement,
44
getMessage,

0 commit comments

Comments
 (0)