Skip to content

Conversation

Ampelbein
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant