module.exports = {'demo UnitTest' : function (client, done) {client.assert.ok('TEST');setTimeout(function() {done();}, 500);}};
Starting selenium server... started - PID: 3610
[Nightwatch Test] Test Suite
============================
Running: demo UnitTest
✔ Passed [ok]: TEST ok
An error occurred while running the tests:
TypeError: done is not a function
at null._onTimeout (/Users/guptam/Documents/repos/time-dfp/tests/automation/nightwatch-test.js:25:7)
at Timer.listOnTimeout (timers.js:92:15)
Any pointers on the cause of above error? Thanks in advance. Please let me know if anything unclear.