"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/compiler-sfc/test/compileScript.spec.ts" between
vue-2.7.13.tar.gz and vue-2.7.14.tar.gz

About: Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

compileScript.spec.ts  (vue-2.7.13):compileScript.spec.ts  (vue-2.7.14)
skipping to change at line 1574 skipping to change at line 1574
}) })
// #12591 // #12591
test('should not error when performing ts expression check for v-on inline s tatement', () => { test('should not error when performing ts expression check for v-on inline s tatement', () => {
compile(` compile(`
<script setup lang="ts"> <script setup lang="ts">
import { foo } from './foo' import { foo } from './foo'
</script> </script>
<template> <template>
<div @click="$emit('update:a');"></div> <div @click="$emit('update:a');"></div>
</tempalte> </template>
`)
})
// #12841
test('should not error when performing ts expression check for v-slot destru
ctured default value', () => {
compile(`
<script setup lang="ts">
import FooComp from './Foo.vue'
</script>
<template>
<FooComp>
<template #bar="{ bar = { baz: '' } }">
{{ bar.baz }}
</template>
</FooComp>
</template>
`) `)
}) })
}) })
}) })
 End of changes. 1 change blocks. 
1 lines changed or deleted 18 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)