fix bug in test
This commit is contained in:
parent
bfce448a96
commit
92e85bead3
|
@ -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: '' });
|
var l = unpackLabels(new Uint8Array(ab), record.rdstart, { byteLength: 0, cpcount: 0, labels: [], name: '' });
|
||||||
|
|
||||||
|
|
|
@ -71,6 +71,8 @@
|
||||||
try {
|
try {
|
||||||
deepLike(expected, result);
|
deepLike(expected, result);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
console.log('[RESULT]');
|
||||||
|
console.log(JSON.stringify(result, null, 2));
|
||||||
console.error('[FAIL]', name);
|
console.error('[FAIL]', name);
|
||||||
console.error(e.stack);
|
console.error(e.stack);
|
||||||
console.log('');
|
console.log('');
|
||||||
|
|
Loading…
Reference in New Issue