Add debug logs

This commit is contained in:
Daniel Imms
2020-03-27 11:59:04 -07:00
parent 1661165648
commit 3e4e23b442

View File

@@ -548,6 +548,7 @@ import { doesNotThrow, equal, ok, deepEqual, throws } from 'assert';
} catch (e) {
done(e);
}
console.log('Terminal data: ' + e.data);
// Multiple expected could show up in the same data event
while (expectedText.length > 0 && e.data.indexOf(expectedText[0]) >= 0) {
expectedText.shift();
@@ -593,6 +594,7 @@ import { doesNotThrow, equal, ok, deepEqual, throws } from 'assert';
} catch (e) {
done(e);
}
console.log('Terminal data: ' + e.data);
// Multiple expected could show up in the same data event
while (expectedText.length > 0 && e.data.indexOf(expectedText[0]) >= 0) {
expectedText.shift();