Newer mocha versions require a description for tests #91
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Builds with newer mocha versions (>4.0.1) seem to fail:
mocha --reporter spec
/usr/lib/nodejs/mocha/lib/suite.js:47
throw new Error('Suite
title
should be a "string" but "' + typeof title + '" was given instead.');^
Error: Suite
title
should be a "string" but "undefined" was given instead.at new Suite (/usr/lib/nodejs/mocha/lib/suite.js:47:11)
at Function.exports.create (/usr/lib/nodejs/mocha/lib/suite.js:31:15)
at Object.create (/usr/lib/nodejs/mocha/lib/interfaces/common.js:104:27)
at context.describe.context.context (/usr/lib/nodejs/mocha/lib/interfaces/bdd.js:44:27)
at /build/1st/node-ip-1.1.5/test/api-test.js:363:9
at Array.forEach ()
at Suite. (/build/1st/node-ip-1.1.5/test/api-test.js:362:37)
at Object.create (/usr/lib/nodejs/mocha/lib/interfaces/common.js:112:19)
at context.describe.context.context (/usr/lib/nodejs/mocha/lib/interfaces/bdd.js:44:27)
at Suite. (/build/1st/node-ip-1.1.5/test/api-test.js:361:5)
at Object.create (/usr/lib/nodejs/mocha/lib/interfaces/common.js:112:19)
at context.describe.context.context (/usr/lib/nodejs/mocha/lib/interfaces/bdd.js:44:27)
at Suite. (/build/1st/node-ip-1.1.5/test/api-test.js:354:3)
at Object.create (/usr/lib/nodejs/mocha/lib/interfaces/common.js:112:19)
at context.describe.context.context (/usr/lib/nodejs/mocha/lib/interfaces/bdd.js:44:27)
at Object. (/build/1st/node-ip-1.1.5/test/api-test.js:8:1)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at /usr/lib/nodejs/mocha/lib/mocha.js:231:27
at Array.forEach ()
at Mocha.loadFiles (/usr/lib/nodejs/mocha/lib/mocha.js:228:14)
at Mocha.run (/usr/lib/nodejs/mocha/lib/mocha.js:514:10)
at Object. (/usr/lib/nodejs/mocha/bin/_mocha:484:18)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
make[1]: *** [debian/rules:13: override_dh_auto_test] Error 1
The title isn't populated for the 2 affected tests. This pull request changes that.