mirror of
https://github.com/node-ebics/node-ebics-client.git
synced 2025-08-13 11:25:36 +00:00
test: add more tests
This commit is contained in:
@@ -51,7 +51,6 @@ module.exports = (xml, keys) => ({
|
||||
|
||||
transactionKey() {
|
||||
const keyNodeText = this.doc.getElementsByTagNameNS('urn:org:ebics:H004', 'TransactionKey')[0].textContent;
|
||||
|
||||
return Crypto.privateDecrypt(this.keys.e(), Buffer.from(keyNodeText, 'base64'));
|
||||
},
|
||||
|
||||
@@ -64,7 +63,7 @@ module.exports = (xml, keys) => ({
|
||||
|
||||
orderId() {
|
||||
const select = xpath.useNamespaces({ xmlns: 'urn:org:ebics:H004' });
|
||||
const node = select('//xmlns:header/xmlns:mutable/xmlns:OrderID', this.doc);
|
||||
const node = select('.//xmlns:header/xmlns:mutable/xmlns:OrderID', this.doc);
|
||||
|
||||
return node.length ? node[0].textContent : '';
|
||||
},
|
||||
|
Reference in New Issue
Block a user