Added support for DLRs

This commit is contained in:
2015-04-07 13:55:22 +02:00
parent 9e257e8087
commit 7a4ed47e02
3 changed files with 136 additions and 76 deletions
+5 -5
View File
@@ -150,11 +150,11 @@ describe('PDU convertion', function() {
larvitsmpp.pduToObj(pdu, function(err, obj) {
assert( ! err, 'Error should be negative');
assert(obj.cmdId.toString(16) === '5', 'Command ID should be 0x00000005 (5)');
assert(obj.cmdStatus === 'ESME_ROK', 'Command status should be "ESME_ROK"');
assert(obj.seqNr === 44576390, 'Sequence number should be 44576390');
assert(obj.params.destination_addr === '46701113311', 'Param destination_addr should be "46701113311"');
assert(obj.tlvs.receipted_message_id === '155040621242143585', 'TLV receipted_message_id should be "155040621242143585"');
assert(obj.cmdId.toString(16) === '5', 'Command ID should be 0x00000005 (5)');
assert(obj.cmdStatus === 'ESME_ROK', 'Command status should be "ESME_ROK"');
assert(obj.seqNr === 44576390, 'Sequence number should be 44576390');
assert(obj.params.destination_addr === '46701113311', 'Param destination_addr should be "46701113311"');
assert(obj.tlvs.receipted_message_id.tagValue === '155040621242143585', 'TLV receipted_message_id should be "155040621242143585", but is "' + obj.tlvs.receipted_message_id.tagValue + '"');
done();
});