mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
remove depricated test
This commit is contained in:
parent
187deba1a8
commit
a430d9cd6e
@ -60,24 +60,24 @@ describe('GddTransactionList', () => {
|
||||
})
|
||||
})
|
||||
|
||||
// describe.only('without any properties', () => {
|
||||
// beforeEach(async () => {
|
||||
// await wrapper.setProps({
|
||||
// transactions: [],
|
||||
// count: -1,
|
||||
// })
|
||||
// })
|
||||
// it('renders text saying that there are error.empty-transactionlist ', () => {
|
||||
// expect(wrapper.find('div.gdd-transaction-list').text()).toContain(
|
||||
// 'transaction.nullTransactions',
|
||||
// )
|
||||
// })
|
||||
// it('renders text saying that there are no transaction.nullTransactions', () => {
|
||||
// expect(wrapper.find('div.gdd-transaction-list').text()).toContain(
|
||||
// 'transaction.nullTransactions',
|
||||
// )
|
||||
// })
|
||||
// })
|
||||
describe('without any properties', () => {
|
||||
beforeEach(async () => {
|
||||
await wrapper.setProps({
|
||||
transactions: [],
|
||||
count: -1,
|
||||
})
|
||||
})
|
||||
it('renders text saying that there are error.empty-transactionlist ', () => {
|
||||
expect(wrapper.find('div.gdd-transaction-list').text()).toContain(
|
||||
'transaction.nullTransactions',
|
||||
)
|
||||
})
|
||||
it('renders text saying that there are no transaction.nullTransactions', () => {
|
||||
expect(wrapper.find('div.gdd-transaction-list').text()).toContain(
|
||||
'transaction.nullTransactions',
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
describe('timestamp property', () => {
|
||||
it('emits update-transactions when timestamp changes', async () => {
|
||||
@ -401,40 +401,6 @@ describe('GddTransactionList', () => {
|
||||
})
|
||||
})
|
||||
|
||||
// describe('with invalid transaction type', () => {
|
||||
// beforeEach(async () => {
|
||||
// await wrapper.setProps({
|
||||
// transactions: [
|
||||
// {
|
||||
// id: 9,
|
||||
// typeId: 'invalid',
|
||||
// amount: '1',
|
||||
// balance: '31.76099091058520945292',
|
||||
// balanceDate: '2022-02-28T13:55:47.000Z',
|
||||
// memo: 'adasd adada',
|
||||
// linkedUser: {
|
||||
// firstName: 'Bibi',
|
||||
// lastName: 'Bloxberg',
|
||||
// __typename: 'User',
|
||||
// },
|
||||
// decay: {
|
||||
// decay: '-0.2038314055482643084',
|
||||
// start: '2022-02-25T07:29:26.000Z',
|
||||
// end: '2022-02-28T13:55:47.000Z',
|
||||
// duration: 282381,
|
||||
// __typename: 'Decay',
|
||||
// },
|
||||
// __typename: 'Transaction',
|
||||
// },
|
||||
// ],
|
||||
// })
|
||||
// })
|
||||
|
||||
// it('throws an error', () => {
|
||||
// expect(errorHandler).toHaveBeenCalled(0)
|
||||
// })
|
||||
// })
|
||||
|
||||
describe('pagination buttons', () => {
|
||||
const transactions = Array.from({ length: 42 }, (_, idx) => {
|
||||
return {
|
||||
|
||||
@ -95,9 +95,6 @@ export default {
|
||||
})
|
||||
window.scrollTo(0, 0)
|
||||
},
|
||||
throwError(msg) {
|
||||
throw new Error(msg)
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
currentPage() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user