mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix test for Overview.spec.js
This commit is contained in:
parent
e930aa9d4f
commit
db304211aa
@ -11,6 +11,9 @@ describe('Overview', () => {
|
||||
const mocks = {
|
||||
$t: jest.fn((t) => t),
|
||||
$n: jest.fn(),
|
||||
$i18n: {
|
||||
locale: 'en',
|
||||
},
|
||||
}
|
||||
|
||||
const Wrapper = () => {
|
||||
@ -28,15 +31,5 @@ describe('Overview', () => {
|
||||
it('has a community news element', () => {
|
||||
expect(wrapper.find('div.community-news').exists()).toBeTruthy()
|
||||
})
|
||||
|
||||
/*
|
||||
describe('timestamp updates', () => {
|
||||
it('emits update transactions', async () => {
|
||||
expect(wrapper.emitted('update-transactions')).toHaveLength(1)
|
||||
await wrapper.setData({ timestamp: Date.now() })
|
||||
expect(wrapper.emitted('update-transactions')).toHaveLength(2)
|
||||
})
|
||||
})
|
||||
*/
|
||||
})
|
||||
})
|
||||
|
||||
@ -1,57 +1,15 @@
|
||||
<template>
|
||||
<div>
|
||||
<div class="overview">
|
||||
<community-news />
|
||||
<!-- <gdd-transaction-list
|
||||
:transactions="transactions"
|
||||
:pageSize="5"
|
||||
:timestamp="timestamp"
|
||||
:transaction-count="transactionCount"
|
||||
:transactionLinkCount="transactionLinkCount"
|
||||
:pending="pending"
|
||||
v-on="$listeners"
|
||||
/> -->
|
||||
<!-- <gdd-transaction-list-footer :count="transactionCount" /> -->
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import CommunityNews from '@/components/Overview/CommunityNews.vue'
|
||||
// import GddTransactionList from '@/components/GddTransactionList.vue'
|
||||
// import GddTransactionListFooter from '@/components/GddTransactionListFooter.vue'
|
||||
|
||||
export default {
|
||||
name: 'Overview',
|
||||
components: {
|
||||
CommunityNews,
|
||||
// GddTransactionList,
|
||||
// GddTransactionListFooter,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// timestamp: Date.now(),
|
||||
}
|
||||
},
|
||||
props: {
|
||||
// transactions: {
|
||||
// default: () => [],
|
||||
// },
|
||||
// transactionCount: { type: Number, default: 0 },
|
||||
// transactionLinkCount: { type: Number, default: 0 },
|
||||
// pending: {
|
||||
// type: Boolean,
|
||||
// default: true,
|
||||
// },
|
||||
},
|
||||
methods: {
|
||||
// updateTransactions(pagination) {
|
||||
// this.$emit('update-transactions', pagination)
|
||||
// },
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
/* .g-border {
|
||||
border: #ffffff 2px;
|
||||
border-style: inset;
|
||||
border-radius: 5px;
|
||||
} */
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user