Commit 40bcb3d7 authored by Daniel Fahlke's avatar Daniel Fahlke Committed by Evan You

test: add regression test for #1491 (#1510)

parent a51b2b5a
<template>
<div></div>
<div></div>
</template>
......@@ -253,6 +253,16 @@ test('custom compiler directives', done => {
})
})
test('multiple roots in template', done => {
mockBundleAndRun({
entry: 'multiple-roots-template.vue'
}, ({ bundleStats }) => {
expect(bundleStats.compilation.errors).toHaveLength(1)
expect(bundleStats.compilation.errors[0].message).toMatch('should contain exactly one root element')
done()
}, true)
})
test('separate loader configuration for template lang and js imports', done => {
mockBundleAndRun({
entry: './test/fixtures/template-pre.js',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment