Reputation: 29
I have installed the mocha but while running this test using command then getting describe is not a function error.
Upvotes: 1
Views: 436
Reputation: 1831
You are overwriting the mocha functions describe
, before
, after
and it
in line 2 of your script. I don't know how selenium is handling this, but I would try this:
mocha mochaTest.js
again -> Error should disappearNext you should uncomment line 2 again and see if selenium-webdriver/testing
is installed properly.
Upvotes: 2