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

use extend instead of Object.assign() since the latter is not avaialble in phantomjs

Evan You 10 лет назад
Родитель
Сommit
82c76175ec
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      test/unit/modules/compiler/parser.spec.js

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

@@ -289,7 +289,7 @@ describe('parser', () => {
   })
   })
 
 
   it('not specified getTagNamespace option', () => {
   it('not specified getTagNamespace option', () => {
-    const options = Object.assign({}, baseOptions)
+    const options = extend({}, baseOptions)
     delete options.getTagNamespace
     delete options.getTagNamespace
     const ast = parse('<svg><text>hello world</text></svg>', options)
     const ast = parse('<svg><text>hello world</text></svg>', options)
     expect(ast.tag).toBe('svg')
     expect(ast.tag).toBe('svg')
@@ -297,7 +297,7 @@ describe('parser', () => {
   })
   })
 
 
   it('not specified mustUseProp', () => {
   it('not specified mustUseProp', () => {
-    const options = Object.assign({}, baseOptions)
+    const options = extend({}, baseOptions)
     delete options.mustUseProp
     delete options.mustUseProp
     const ast = parse('<input type="text" name="field1" :value="msg">', options)
     const ast = parse('<input type="text" name="field1" :value="msg">', options)
     expect(ast.props).toBeUndefined()
     expect(ast.props).toBeUndefined()