diff --git a/test/unit/modules/compiler/parser.spec.js b/test/unit/modules/compiler/parser.spec.js index 1ca9b379..4d78bfe5 100644 --- a/test/unit/modules/compiler/parser.spec.js +++ b/test/unit/modules/compiler/parser.spec.js @@ -1,6 +1,7 @@ import { parse } from 'compiler/parser/index' import { extend } from 'shared/util' import { baseOptions } from 'web/compiler/index' +import { isIE } from 'core/util/env' describe('parser', () => { it('simple element', () => { @@ -320,10 +321,12 @@ describe('parser', () => { expect('Interpolation inside attributes has been deprecated').toHaveBeenWarned() }) - it('duplicate attribute', () => { - parse('

hello world

', baseOptions) - expect('duplicate attribute').toHaveBeenWarned() - }) + if (!isIE) { + it('duplicate attribute', () => { + parse('

hello world

', baseOptions) + expect('duplicate attribute').toHaveBeenWarned() + }) + } it('custom delimiter', () => { const ast = parse('

{msg}

', extend({ delimiters: ['{', '}'] }, baseOptions))