prettier/tests/multiparser_vue/__snapshots__/jsfmt.spec.js.snap

96 lines
1.7 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`template-bind.vue 1`] = `
<template>
<div v-bind:id=" 'list-' + id "></div>
<div v-bind:id=" rawId | formatId "></div>
<div v-bind:id=" ok ? 'YES' : 'NO' "></div>
<button @click=" foo ( arg, 'string' ) "></button>
</template>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<template>
<div v-bind:id="'list-' + id" />
<div v-bind:id="rawId | formatId" />
<div v-bind:id="ok ? 'YES' : 'NO'" />
<button @click="foo(arg, 'string')" />
</template>
`;
exports[`template-class.vue 1`] = `
<template>
<h2
class="title"
:class="{ 'issue-realtime-pre-pulse': preAnimation,
'issue-realtime-trigger-pulse': pulseAnimation}"
v-html="titleHtml"
>
</h2>
</template>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<template>
<h2 class="title"
:class="{
'issue-realtime-pre-pulse': preAnimation,
'issue-realtime-trigger-pulse': pulseAnimation
}"
v-html="titleHtml">
</h2>
</template>
`;
exports[`vue-component.vue 1`] = `
<template >
<h1 >{{greeting}} world</h1 >
</template >
<script>
module . exports =
{data : function () {return {
greeting: "Hello"
}}
}
</script>
<style scoped >
p { font-size : 2em ; text-align : center ; }
</style >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<template>
<h1>{{greeting}} world</h1>
</template>
<script>
module.exports = {
data: function() {
return {
greeting: "Hello"
};
}
};
</script>
<style scoped>
p {
font-size: 2em;
text-align: center;
}
</style>
`;