forked from vuejs/vetur
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SFC without a script tag show an error, Fix vuejs#1187.
- Loading branch information
1 parent
7ddc969
commit d50c273
Showing
6 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { activateLS, sleep, showFile, FILE_LOAD_SLEEP_TIME } from '../helper'; | ||
import { getDocUri } from '../util'; | ||
import { testNoDiagnostics } from '../features/diagnostics/helper'; | ||
|
||
describe('Should find common diagnostics for all regions', () => { | ||
const docUri = getDocUri('client/diagnostics/Parent.vue'); | ||
|
||
before('activate', async () => { | ||
await activateLS(); | ||
await showFile(docUri); | ||
}); | ||
|
||
it('shows no diagnostics error for <script> region', async () => { | ||
await testNoDiagnostics(docUri); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<div></div> | ||
</template> | ||
|
||
<script> | ||
import SimpleChild from './SimpleChild.vue' | ||
export default { | ||
components: { | ||
SimpleChild | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<template> | ||
<h1>No script tag in this component</h1> | ||
</template> |