File tree 2 files changed +0
-19
lines changed
2 files changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -21,20 +21,6 @@ export function siblings (node) {
21
21
return [ ]
22
22
}
23
23
24
- /**
25
- * Checks if passed node exist and is a valid element.
26
- *
27
- * @param {Element } node
28
- * @return {Boolean }
29
- */
30
- export function exist ( node ) {
31
- if ( node && node instanceof window . HTMLElement ) {
32
- return true
33
- }
34
-
35
- return false
36
- }
37
-
38
24
/**
39
25
* Coerces a NodeList to an Array.
40
26
*
Original file line number Diff line number Diff line change @@ -11,11 +11,6 @@ describe('Function', () => {
11
11
`
12
12
} )
13
13
14
- test ( '`exist` should check if passed HTMLElement is present' , ( ) => {
15
- expect ( exist ( document . querySelector ( '.parent' ) ) ) . toBe ( true )
16
- expect ( exist ( document . querySelector ( '.missing' ) ) ) . toBe ( false )
17
- } )
18
-
19
14
test ( '`siblings` should return siblings of the passed HTMLElements' , ( ) => {
20
15
let children = document . querySelectorAll ( '.child' )
21
16
You can’t perform that action at this time.
0 commit comments