Skip to content

Commit

Permalink
test: add missing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lyhper committed Apr 9, 2018
1 parent 5eabf44 commit 2cc2965
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/unit/modules/compiler/parser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ describe('parser', () => {
})

it('attribute with v-bind', () => {
const ast = parse('<input type="text" name="field1" :value="msg">', baseOptions)
const ast = parse('<input type="text" name="field1" :value="msg" :empty-msg="">', baseOptions)
expect(ast.attrsList[0].name).toBe('type')
expect(ast.attrsList[0].value).toBe('text')
expect(ast.attrsList[1].name).toBe('name')
Expand All @@ -508,6 +508,7 @@ describe('parser', () => {
expect(ast.attrs[1].value).toBe('"field1"')
expect(ast.props[0].name).toBe('value')
expect(ast.props[0].value).toBe('msg')
expect('The v-bind expression should not be empty').toHaveBeenWarned()
})

// #6887
Expand Down

0 comments on commit 2cc2965

Please sign in to comment.