Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(compiler-sfc): more tests (#536)
- Loading branch information
Showing
3 changed files
with
107 additions
and
6 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
packages/compiler-sfc/__tests__/__snapshots__/compileTemplate.spec.ts.snap
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,27 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`source map 1`] = ` | ||
Object { | ||
"mappings": ";;;;UAAA,aACE;IAAK,gCAAMA,WAAM", | ||
"names": Array [ | ||
"render", | ||
], | ||
"sources": Array [ | ||
"example.vue", | ||
], | ||
"sourcesContent": Array [ | ||
" | ||
<div><p>{{ render }}</p></div> | ||
", | ||
], | ||
"version": 3, | ||
} | ||
`; | ||
|
||
exports[`template errors 1`] = ` | ||
Array [ | ||
[SyntaxError: Invalid JavaScript expression. (2:13)], | ||
[SyntaxError: v-bind is missing expression. (1:6)], | ||
[SyntaxError: v-model can only be used on <input>, <textarea> and <select> elements. (2:17)], | ||
] | ||
`; |
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