mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2024-11-21 21:52:07 +00:00
feat: tests
This commit is contained in:
parent
cf16abc843
commit
fa557f5e9b
@ -1,5 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
/* eslint-env node, mocha */
|
||||||
|
|
||||||
const { assert } = require('chai');
|
const { assert } = require('chai');
|
||||||
const H004Response = require('../lib/orders/H004/response');
|
const H004Response = require('../lib/orders/H004/response');
|
||||||
|
|
||||||
@ -23,7 +25,7 @@ describe('H004 response parsing', () => {
|
|||||||
<AuthenticationVersion>X002</AuthenticationVersion>
|
<AuthenticationVersion>X002</AuthenticationVersion>
|
||||||
</AuthenticationPubKeyInfo>
|
</AuthenticationPubKeyInfo>
|
||||||
<EncryptionPubKeyInfo>
|
<EncryptionPubKeyInfo>
|
||||||
<PubKeyValue>
|
<PubKeyValue>
|
||||||
<ds:RSAKeyValue>
|
<ds:RSAKeyValue>
|
||||||
<ds:Modulus>${e002mod}</ds:Modulus>
|
<ds:Modulus>${e002mod}</ds:Modulus>
|
||||||
<ds:Exponent>AQAB</ds:Exponent>
|
<ds:Exponent>AQAB</ds:Exponent>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/* eslint-disable no-loop-func */
|
/* eslint-env node, mocha */
|
||||||
|
|
||||||
const { assert } = require('chai');
|
const { assert } = require('chai');
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ const client = new ebics.Client({
|
|||||||
userId: 'CRS04381',
|
userId: 'CRS04381',
|
||||||
hostId: 'CRSISOTB',
|
hostId: 'CRSISOTB',
|
||||||
passphrase: 'test',
|
passphrase: 'test',
|
||||||
keyStorage: ebics.fsKeysStorage(path.resolve(__dirname, './TEST_KEYS.key')),
|
keyStorage: ebics.fsKeysStorage(path.resolve(__dirname, '../support/TEST_KEYS.key')),
|
||||||
});
|
});
|
||||||
|
|
||||||
const { Orders } = ebics;
|
const { Orders } = ebics;
|
||||||
|
Loading…
Reference in New Issue
Block a user