mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
test that updating the timestamp emits update transactions
This commit is contained in:
parent
eff9d9fab6
commit
0e64ca444a
@ -35,5 +35,13 @@ describe('AccountOverview', () => {
|
||||
it('has a transactions table', () => {
|
||||
expect(wrapper.find('div.gdd-transaction-list').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)
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -54,11 +54,6 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
timestamp: Date.now(),
|
||||
error: false,
|
||||
errorResult: '',
|
||||
loading: false,
|
||||
datacollectionGdd: null,
|
||||
datacollectionGdt: null,
|
||||
}
|
||||
},
|
||||
props: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user