mirror of
https://github.com/IT4Change/boilerplate-frontend.git
synced 2025-12-13 07:35:53 +00:00
delete unused component
This commit is contained in:
parent
3ca8aa1677
commit
1cbf755e61
@ -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
|
|
||||||
})
|
|
||||||
})
|
|
||||||
@ -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>
|
|
||||||
Loading…
x
Reference in New Issue
Block a user