Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vue-loader
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pi-plusplus
fork-from-github
vue-loader
Commits
40bcb3d7
Commit
40bcb3d7
authored
Mar 11, 2019
by
Daniel Fahlke
Committed by
Evan You
Mar 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add regression test for #1491 (#1510)
parent
a51b2b5a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
multiple-roots-template.vue
test/fixtures/multiple-roots-template.vue
+4
-0
template.spec.js
test/template.spec.js
+10
-0
No files found.
test/fixtures/multiple-roots-template.vue
0 → 100644
View file @
40bcb3d7
<
template
>
<div></div>
<div></div>
</
template
>
test/template.spec.js
View file @
40bcb3d7
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment