Skip to content

Commit

Permalink
test(runtime-code): edit test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Kruglov committed Apr 24, 2024
1 parent 689f2b4 commit cf714fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-core/__tests__/rendererTemplateRef.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,8 @@ describe('api: template refs', () => {
render(h(App), root)

expect(
'In production mode reactive ref array will not be filled. ' +
'Use ref() instead.',
'In production mode ref array will not be filled. ' +
'Use ref() instead. Ref name: reactiveRef',
).toHaveBeenWarned()
})
})
4 changes: 2 additions & 2 deletions packages/runtime-core/src/rendererTemplateRef.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export function setRef(
if (wrongRefType) {
warn(
'In production mode ref array will not be filled. ' +
'Use ref() instead. Ref name: ',
ref,
'Use ref() instead. Ref name: ' +
ref,
)
}
existing.push(refValue)
Expand Down

0 comments on commit cf714fa

Please sign in to comment.