Fixing tests since we now use link and code.

This commit is contained in:
elweyn 2022-04-06 19:16:30 +02:00
parent 41b35f2c5e
commit 2cc7a6dee6
4 changed files with 8 additions and 1 deletions

View File

@ -16,6 +16,7 @@ const propsData = {
{
amount: '5',
code: 'ce28664b5308c17f931c0367',
link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
createdAt: '2022-03-16T14:22:40.000Z',
holdAvailableAmount: '5.13109484759482747111',
id: 87,
@ -26,6 +27,7 @@ const propsData = {
{
amount: '6',
code: 'ce28664b5308c17f931c0367',
link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
createdAt: '2022-03-16T14:22:40.000Z',
holdAvailableAmount: '5.13109484759482747111',
id: 86,

View File

@ -22,6 +22,7 @@ const mocks = {
const propsData = {
amount: '75',
code: 'c00000000c000000c0000',
link: 'http://localhost/redeem/c00000000c000000c0000',
holdAvailableAmount: '5.13109484759482747111',
id: 12,
memo: 'Wie schön hier etwas Quatsch zu lesen!',

View File

@ -44,6 +44,7 @@ describe('TransactionLinkSummary', () => {
{
amount: '75',
code: 'ce28664b5308c17f931c0367',
link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
createdAt: '2022-03-16T14:22:40.000Z',
holdAvailableAmount: '5.13109484759482747111',
id: 86,
@ -55,6 +56,7 @@ describe('TransactionLinkSummary', () => {
{
amount: '85',
code: 'ce28664b5308c17f931c0367',
link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
createdAt: '2022-03-16T14:22:40.000Z',
holdAvailableAmount: '5.13109484759482747111',
id: 107,
@ -65,6 +67,7 @@ describe('TransactionLinkSummary', () => {
{
amount: '95',
code: 'ce28664b5308c17f931c0367',
link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
createdAt: '2022-03-16T14:22:40.000Z',
holdAvailableAmount: '5.13109484759482747111',
id: 92,
@ -76,6 +79,7 @@ describe('TransactionLinkSummary', () => {
{
amount: '150',
code: 'ce28664b5308c17f931c0367',
link: 'http://localhost/redeem/ce28664b5308c17f931c0367',
createdAt: '2022-03-16T14:22:40.000Z',
holdAvailableAmount: '5.13109484759482747111',
id: 16,

View File

@ -162,7 +162,7 @@ describe('Send', () => {
describe('transaction form link', () => {
beforeEach(async () => {
apolloMutationMock.mockResolvedValue({
data: { createTransactionLink: { code: '0123456789' } },
data: { createTransactionLink: { code: '0123456789', link: 'http://localhost/redeem/0123456789' } },
})
const transactionForm = wrapper.findComponent({ name: 'TransactionForm' })
await transactionForm.findAll('input[type="radio"]').at(1).setChecked()