refactor: use refTransform instead of deprecated refSugar (#4957)
This commit is contained in:
@@ -5,7 +5,7 @@ import { compileSFCScript as compile, assertCode } from './utils'
|
||||
// transform can be found in <root>/packages/ref-transform/__tests__
|
||||
describe('sfc ref transform', () => {
|
||||
function compileWithRefTransform(src: string) {
|
||||
return compile(src, { refSugar: true })
|
||||
return compile(src, { refTransform: true })
|
||||
}
|
||||
|
||||
test('$ unwrapping', () => {
|
||||
@@ -156,7 +156,7 @@ describe('sfc ref transform', () => {
|
||||
bar
|
||||
})
|
||||
</script>`,
|
||||
{ refSugar: true }
|
||||
{ refTransform: true }
|
||||
)
|
||||
).toThrow(`cannot reference locally declared variables`)
|
||||
|
||||
@@ -168,7 +168,7 @@ describe('sfc ref transform', () => {
|
||||
bar
|
||||
})
|
||||
</script>`,
|
||||
{ refSugar: true }
|
||||
{ refTransform: true }
|
||||
)
|
||||
).toThrow(`cannot reference locally declared variables`)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user