Skip to content

Commit 772e5de

Browse files
committed
fix scheduled tests
1 parent 39d6a9f commit 772e5de

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/integration-test/test/scheduled/btc-test-data.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export const requestData = {
4040
currency: {
4141
type: RequestLogicTypes.CURRENCY.BTC,
4242
value: 'BTC',
43+
network: 'mainnet',
4344
},
4445
expectedAmount: '100000000000',
4546
payee: payee.identity,

packages/integration-test/test/scheduled/escrow-detector.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Erc20PaymentNetwork } from '../../../payment-detection/dist';
1+
import { Erc20PaymentNetwork } from '@requestnetwork/payment-detection';
22
import { CurrencyManager } from '@requestnetwork/currency';
33
import { createMockErc20FeeRequest } from '../utils';
44
import { mockAdvancedLogic } from './mocks';

packages/integration-test/test/native-token.test.ts renamed to packages/integration-test/test/scheduled/native-token.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { PaymentTypes, RequestLogicTypes } from '@requestnetwork/types';
33
import { PnReferenceBased } from '@requestnetwork/types/dist/extension-types';
44
import { AdvancedLogic } from '@requestnetwork/advanced-logic';
55
import { CurrencyManager } from '@requestnetwork/currency';
6+
import { omit } from 'lodash';
67

78
const advancedLogic = new AdvancedLogic();
89

@@ -34,7 +35,9 @@ describe('PaymentNetworkFactory and createExtensionsDataForCreation', () => {
3435
'aurora-testnet',
3536
);
3637
await expect(async () => {
37-
await paymentNetwork.createExtensionsDataForCreation(createCreationActionParams);
38+
await paymentNetwork.createExtensionsDataForCreation(
39+
omit(createCreationActionParams, 'paymentNetworkName'),
40+
);
3841
}).rejects.toThrowError(
3942
'The network name is mandatory for the creation of the extension pn-native-token.',
4043
);

0 commit comments

Comments
 (0)