File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ const extractPropsFromFunctionalTemplate = require('./extract-props')
1111const splitRE = / \r ? \n / g
1212
1313function processScript ( scriptPart ) {
14+ if ( ! scriptPart ) {
15+ return { code : '' }
16+ }
17+
1418 if ( / ^ t y p e s c r i p t | t s x ? $ / . test ( scriptPart . lang ) ) {
1519 return compileTypescript ( scriptPart . content )
1620 }
Original file line number Diff line number Diff line change 1+ import { mount } from 'vue-test-utils'
2+ import NoScript from './resources/NoScript.vue'
3+
4+ describe ( 'NoScript' , ( ) => {
5+ it ( 'renders' , ( ) => {
6+ const wrapper = mount ( NoScript )
7+ expect ( wrapper . contains ( 'footer' ) )
8+ } )
9+ } )
Original file line number Diff line number Diff line change 1+ <template >
2+ <footer class =" footer" >I'm footer!</footer >
3+ </template >
4+
5+ <style >
6+ .footer {
7+ padding : 15px ;
8+ border : 1px dashed red ;
9+ text-align : center ;
10+ margin-top : 30px ;
11+ }
12+ </style >
You can’t perform that action at this time.
0 commit comments