Skip to content

Node.js based forum software built for the modern web

fixing tests for #5232

Julian Lam7b471b76db69
diff --git a/test/flags.js b/test/flags.js
index c46ac0bcef..cc8a0425e3 100644
--- a/test/flags.js
+++ b/test/flags.js
@@ -457,6 +457,7 @@ describe('Flags', function () {
flagId: flag.flagId,
note: 'lorem ipsum dolor sit amet'
}, function (err, data) {
+ assert.ifError(err);
assert(data.hasOwnProperty('notes'));
assert(Array.isArray(data.notes));
assert.strictEqual('lorem ipsum dolor sit amet', data.notes[0].content);