add some debug for failed tests

v1.18.x
Barış Soner Uşaklı 7 years ago
parent 43f9c3224f
commit 3dd83237b8

@ -63,10 +63,10 @@ describe('Flags', function () {
type: 'post', type: 'post',
description: 'Test flag', description: 'Test flag',
}; };
assert(flagData);
for (var key in compare) { for (var key in compare) {
if (compare.hasOwnProperty(key)) { if (compare.hasOwnProperty(key)) {
assert.ok(flagData[key]); assert.ok(flagData[key], 'undefined key ' + key);
assert.equal(flagData[key], compare[key]); assert.equal(flagData[key], compare[key]);
} }
} }
@ -140,10 +140,10 @@ describe('Flags', function () {
description: 'Test flag', description: 'Test flag',
state: 'open', state: 'open',
}; };
assert(flagData);
for (var key in compare) { for (var key in compare) {
if (compare.hasOwnProperty(key)) { if (compare.hasOwnProperty(key)) {
assert.ok(flagData[key]); assert.ok(flagData[key], 'undefined key ' + key);
assert.equal(flagData[key], compare[key]); assert.equal(flagData[key], compare[key]);
} }
} }

Loading…
Cancel
Save