Skip to content

Commit c232d70

Browse files
committed
chore: update test
1 parent e55c2ac commit c232d70

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/runtime-vapor/__tests__/dom/node.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { VaporFragment } from '../../src'
33

44
describe('dom node', () => {
55
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)
99

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)
1313

1414
// array -> Fragment
1515
expect(normalizeNode(['foo'])).toBeInstanceOf(VaporFragment)

0 commit comments

Comments
 (0)