File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/runtime-vapor/__tests__/dom Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ import { VaporFragment } from '../../src'
3
3
4
4
describe ( 'dom node' , ( ) => {
5
5
test ( 'normalizeNode' , ( ) => {
6
- // null / undefined -> Comment
7
- expect ( normalizeNode ( null ) ) . toBeInstanceOf ( Comment )
8
- expect ( normalizeNode ( undefined ) ) . toBeInstanceOf ( Comment )
6
+ // null / undefined -> []
7
+ expect ( normalizeNode ( null ) ) . toBeInstanceOf ( Array )
8
+ expect ( normalizeNode ( undefined ) ) . toBeInstanceOf ( Array )
9
9
10
- // boolean -> Comment
11
- expect ( normalizeNode ( true ) ) . toBeInstanceOf ( Comment )
12
- expect ( normalizeNode ( false ) ) . toBeInstanceOf ( Comment )
10
+ // boolean -> []
11
+ expect ( normalizeNode ( true ) ) . toBeInstanceOf ( Array )
12
+ expect ( normalizeNode ( false ) ) . toBeInstanceOf ( Array )
13
13
14
14
// array -> Fragment
15
15
expect ( normalizeNode ( [ 'foo' ] ) ) . toBeInstanceOf ( VaporFragment )
You can’t perform that action at this time.
0 commit comments