delete unused component

This commit is contained in:
Ulf Gebhardt 2023-12-11 17:08:18 +01:00
parent 3ca8aa1677
commit 1cbf755e61
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
2 changed files with 0 additions and 32 deletions

View File

@ -1,21 +0,0 @@
import { mount, config } from '@vue/test-utils'
import { describe, it, expect } from 'vitest'
import ClickCounter from './ClickCounter.delete.vue'
describe('clickCounter', () => {
const wrapper = mount(ClickCounter)
it('renders Button with a Counter of 0', () => {
expect(wrapper.find('.v-btn').exists()).toBeTruthy()
expect(wrapper.text()).toBe("$t('app.inc.text')")
})
it('has default Translation German', () => {
const $Backup = config.global.mocks.$t
config.global.mocks.$t = config.global.mocks.i18n$t
const wrapper = mount(ClickCounter)
expect(wrapper.text()).toBe('Erhöhe: 0')
config.global.mocks.$t = $Backup
})
})

View File

@ -1,11 +0,0 @@
<template>
<v-btn elevation="2" @click="state.count++">{{
$t('app.inc.text', { count: state.count })
}}</v-btn>
</template>
<script lang="ts" setup>
import { reactive } from 'vue'
const state = reactive({ count: 0 })
</script>