Skip to content

Node.js based forum software built for the modern web

add some debug for failed tests

Barış Soner Uşaklı3dd83237b81c
diff --git a/test/flags.js b/test/flags.js
index cf24e08d6b..062c2d5c9a 100644
--- a/test/flags.js
+++ b/test/flags.js
@@ -63,10 +63,10 @@ describe('Flags', function () {
type: 'post',
description: 'Test flag',
};
-
+ assert(flagData);
for (var key in compare) {
if (compare.hasOwnProperty(key)) {
- assert.ok(flagData[key]);
+ assert.ok(flagData[key], 'undefined key ' + key);
assert.equal(flagData[key], compare[key]);
}
}
@@ -140,10 +140,10 @@ describe('Flags', function () {
description: 'Test flag',
state: 'open',
};
-
+ assert(flagData);
for (var key in compare) {
if (compare.hasOwnProperty(key)) {
- assert.ok(flagData[key]);
+ assert.ok(flagData[key], 'undefined key ' + key);
assert.equal(flagData[key], compare[key]);
}
}