mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Fixing tests since we now use link and code.
This commit is contained in:
parent
41b35f2c5e
commit
2cc7a6dee6
@ -16,6 +16,7 @@ const propsData = {
|
|||||||
{
|
{
|
||||||
amount: '5',
|
amount: '5',
|
||||||
code: 'ce28664b5308c17f931c0367',
|
code: 'ce28664b5308c17f931c0367',
|
||||||
|
link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
|
||||||
createdAt: '2022-03-16T14:22:40.000Z',
|
createdAt: '2022-03-16T14:22:40.000Z',
|
||||||
holdAvailableAmount: '5.13109484759482747111',
|
holdAvailableAmount: '5.13109484759482747111',
|
||||||
id: 87,
|
id: 87,
|
||||||
@ -26,6 +27,7 @@ const propsData = {
|
|||||||
{
|
{
|
||||||
amount: '6',
|
amount: '6',
|
||||||
code: 'ce28664b5308c17f931c0367',
|
code: 'ce28664b5308c17f931c0367',
|
||||||
|
link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
|
||||||
createdAt: '2022-03-16T14:22:40.000Z',
|
createdAt: '2022-03-16T14:22:40.000Z',
|
||||||
holdAvailableAmount: '5.13109484759482747111',
|
holdAvailableAmount: '5.13109484759482747111',
|
||||||
id: 86,
|
id: 86,
|
||||||
|
|||||||
@ -22,6 +22,7 @@ const mocks = {
|
|||||||
const propsData = {
|
const propsData = {
|
||||||
amount: '75',
|
amount: '75',
|
||||||
code: 'c00000000c000000c0000',
|
code: 'c00000000c000000c0000',
|
||||||
|
link: 'http://localhost/redeem/c00000000c000000c0000',
|
||||||
holdAvailableAmount: '5.13109484759482747111',
|
holdAvailableAmount: '5.13109484759482747111',
|
||||||
id: 12,
|
id: 12,
|
||||||
memo: 'Wie schön hier etwas Quatsch zu lesen!',
|
memo: 'Wie schön hier etwas Quatsch zu lesen!',
|
||||||
|
|||||||
@ -44,6 +44,7 @@ describe('TransactionLinkSummary', () => {
|
|||||||
{
|
{
|
||||||
amount: '75',
|
amount: '75',
|
||||||
code: 'ce28664b5308c17f931c0367',
|
code: 'ce28664b5308c17f931c0367',
|
||||||
|
link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
|
||||||
createdAt: '2022-03-16T14:22:40.000Z',
|
createdAt: '2022-03-16T14:22:40.000Z',
|
||||||
holdAvailableAmount: '5.13109484759482747111',
|
holdAvailableAmount: '5.13109484759482747111',
|
||||||
id: 86,
|
id: 86,
|
||||||
@ -55,6 +56,7 @@ describe('TransactionLinkSummary', () => {
|
|||||||
{
|
{
|
||||||
amount: '85',
|
amount: '85',
|
||||||
code: 'ce28664b5308c17f931c0367',
|
code: 'ce28664b5308c17f931c0367',
|
||||||
|
link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
|
||||||
createdAt: '2022-03-16T14:22:40.000Z',
|
createdAt: '2022-03-16T14:22:40.000Z',
|
||||||
holdAvailableAmount: '5.13109484759482747111',
|
holdAvailableAmount: '5.13109484759482747111',
|
||||||
id: 107,
|
id: 107,
|
||||||
@ -65,6 +67,7 @@ describe('TransactionLinkSummary', () => {
|
|||||||
{
|
{
|
||||||
amount: '95',
|
amount: '95',
|
||||||
code: 'ce28664b5308c17f931c0367',
|
code: 'ce28664b5308c17f931c0367',
|
||||||
|
link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
|
||||||
createdAt: '2022-03-16T14:22:40.000Z',
|
createdAt: '2022-03-16T14:22:40.000Z',
|
||||||
holdAvailableAmount: '5.13109484759482747111',
|
holdAvailableAmount: '5.13109484759482747111',
|
||||||
id: 92,
|
id: 92,
|
||||||
@ -76,6 +79,7 @@ describe('TransactionLinkSummary', () => {
|
|||||||
{
|
{
|
||||||
amount: '150',
|
amount: '150',
|
||||||
code: 'ce28664b5308c17f931c0367',
|
code: 'ce28664b5308c17f931c0367',
|
||||||
|
link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
|
||||||
createdAt: '2022-03-16T14:22:40.000Z',
|
createdAt: '2022-03-16T14:22:40.000Z',
|
||||||
holdAvailableAmount: '5.13109484759482747111',
|
holdAvailableAmount: '5.13109484759482747111',
|
||||||
id: 16,
|
id: 16,
|
||||||
|
|||||||
@ -162,7 +162,7 @@ describe('Send', () => {
|
|||||||
describe('transaction form link', () => {
|
describe('transaction form link', () => {
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
apolloMutationMock.mockResolvedValue({
|
apolloMutationMock.mockResolvedValue({
|
||||||
data: { createTransactionLink: { code: '0123456789' } },
|
data: { createTransactionLink: { code: '0123456789', link: 'http://localhost/redeem/0123456789' } },
|
||||||
})
|
})
|
||||||
const transactionForm = wrapper.findComponent({ name: 'TransactionForm' })
|
const transactionForm = wrapper.findComponent({ name: 'TransactionForm' })
|
||||||
await transactionForm.findAll('input[type="radio"]').at(1).setChecked()
|
await transactionForm.findAll('input[type="radio"]').at(1).setChecked()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user