123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`lang-ts.vue 1`] = `
- <template>
- <div>{{foo}}</div>
- </template>
- <script lang="ts">
- export default {
- computed: { foo( ): string { return "foo"; }, },
- }
- </script>
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- <template>
- <div>{{foo}}</div>
- </template>
- <script lang="ts">
- export default {
- computed: {
- foo(): string {
- return "foo";
- }
- }
- };
- </script>
- `;
- exports[`lang-tsx.vue 1`] = `
- <script lang="tsx">
- import {VNode} from "vue"
- export default {
- computed: { foo( ):string { return "foo" }, },
- render(h):VNode { return <div>{ this.foo }</div> },
- }
- </script>
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- <script lang="tsx">
- import { VNode } from "vue";
- export default {
- computed: {
- foo(): string {
- return "foo";
- }
- },
- render(h): VNode {
- return <div>{this.foo}</div>;
- }
- };
- </script>
- `;
- 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>
- <div v-bind:id=" rawId | formatId "></div>
- <div v-bind:id=" ok ? 'YES' : 'NO' "></div>
- <button @click=" foo ( arg, 'string' ) "></button>
- </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 >
- <script>kikoo ( ) </script>
- </template >
- <script>
- module . exports =
- {data : function () {return {
- greeting: "Hello"
- }}
- }
- </script>
- <style scoped >
- p { font-size : 2em ; text-align : center ; }
- </style >
- <style lang="postcss" >
- p { font-size : 2em ; text-align : center ; }
- </style >
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- <template >
- <h1 >{{greeting}} world</h1 >
- <script>kikoo ( ) </script>
- </template >
- <script>
- module.exports = {
- data: function() {
- return {
- greeting: "Hello"
- };
- }
- };
- </script>
- <style scoped >
- p {
- font-size: 2em;
- text-align: center;
- }
- </style >
- <style lang="postcss" >
- p {
- font-size: 2em;
- text-align: center;
- }
- </style >
- `;
|