Skip to content
This repository has been archived by the owner on Apr 10, 2019. It is now read-only.

Error Message Object has no method call #1

Closed
Eseoghene opened this issue Jul 8, 2014 · 1 comment
Closed

Error Message Object has no method call #1

Eseoghene opened this issue Jul 8, 2014 · 1 comment

Comments

@Eseoghene
Copy link

This happens every time I try to run tests

Maybe am not doing something correctly

Please see error below
C:\Selenium\WebDriver\TestCases>mocha sanitytests\7
C:\Selenium\WebDriver\TestCases\node_modules\mocha\lib\interfaces\bdd.js:74
fn.call(suite);
^
TypeError: Object 4 has no method 'call'
at Object.context.describe.context.context [as describe](C:SeleniumWebDri
verTestCasesnode_modulesmochalibinterfacesbdd.js:74:10)
at Object. (C:\Selenium\WebDriver\TestCases\sanitytests\7.js:28:6
)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at C:\Selenium\WebDriver\TestCases\node_modules\mocha\lib\mocha.js:172:27
at Array.forEach (native)
at Mocha.loadFiles (C:\Selenium\WebDriver\TestCases\node_modules\mocha\lib\m
ocha.js:169:14)
at Mocha.run (C:\Selenium\WebDriver\TestCases\node_modules\mocha\lib\mocha.j
s:356:31)
at Object. (C:\Selenium\WebDriver\TestCases\node_modules\mocha\bi
n_mocha:366:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3

@giggio
Copy link
Owner

giggio commented Jul 8, 2014

I am waiting on this PR to the main mocha project:
mochajs/mocha#1240

Until then you have to use my fork:
https://github.com/giggio/mocha

There is an issue on how mocha loads different UIs, it can't load them from the local node_modules.

You might also try to install mocha-retry globally. It should work.

@giggio giggio closed this as completed Jul 12, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants