File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/vue-app/template Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ async function createApp (ssrContext) {
168
168
throw new Error ( 'inject(key, value) has no key provided' )
169
169
}
170
170
if ( value === undefined ) {
171
- throw new Error ( ' inject(key, value) has no value provided' )
171
+ throw new Error ( ` inject(' ${ key } ' , value) has no value provided` )
172
172
}
173
173
174
174
key = '$' + key
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ describe('with-config', () => {
22
22
23
23
test ( 'inject fails if value is undefined' , async ( ) => {
24
24
// inject('injectedProperty', undefined)
25
- await expect ( nuxt . renderRoute ( '/?injectValue=undefined' ) ) . rejects . toThrowError ( 'inject(key , value) has no value provided' )
25
+ await expect ( nuxt . renderRoute ( '/?injectValue=undefined' ) ) . rejects . toThrowError ( 'inject(\'injectedProperty\' , value) has no value provided' )
26
26
} )
27
27
28
28
test ( 'inject succeeds if value is defined but evaluates to false' , async ( ) => {
You can’t perform that action at this time.
0 commit comments