fix bug in test

This commit is contained in:
AJ ONeal 2017-02-11 09:09:47 -07:00
parent bfce448a96
commit 92e85bead3
2 changed files with 5 additions and 3 deletions

View File

@ -24,7 +24,7 @@ exports.DNS_TYPE_TXT = function (ab, packet, record) {
//
record.data = unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name;
record.data = [ unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' }).name ];
var l = unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' });

View File

@ -71,6 +71,8 @@
try {
deepLike(expected, result);
} catch(e) {
console.log('[RESULT]');
console.log(JSON.stringify(result, null, 2));
console.error('[FAIL]', name);
console.error(e.stack);
console.log('');