feat: tests

This commit is contained in:
nanov 2019-11-05 05:54:32 +02:00
parent cf16abc843
commit fa557f5e9b
2 changed files with 5 additions and 3 deletions

View File

@ -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>

View File

@ -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;