Просмотр исходного кода

chore(parser.spec): fix an IE conditional test with a typo (#5102)

* chore(parser.spec): fix an IE conditional test with a typo

* check children.length is 0, instead of undefined
YOU 9 лет назад
Родитель
Сommit
e12d96a132
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      test/unit/modules/compiler/parser.spec.js

+ 1 - 1
test/unit/modules/compiler/parser.spec.js

@@ -504,6 +504,6 @@ describe('parser', () => {
       </div>
     `, options)
     expect(ast.tag).toBe('div')
-    expect(ast.chilldren).toBeUndefined()
+    expect(ast.children.length).toBe(0)
   })
 })