nathanboktae / mocha-casperjs

Write CasperJS tests using Mocha
MIT License
120 stars 30 forks source link

can't use --reporter option #35

Closed Lobosque closed 10 years ago

Lobosque commented 10 years ago

It is not recognizing the reporter option:

mocha-casperjs --reporter:

/usr/local/bin/mocha-casperjs: 3: [: --reporter: unexpected operator
/usr/local/bin/mocha-casperjs: 3: [: --reporter: unexpected operator
TypeError: 'undefined' is not a function (evaluating 'opts.reporter.indexOf('.')')
  /usr/local/lib/node_modules/mocha-casperjs/bin/cli.js:106

mocha-casperjs --reporter=spec

/usr/local/bin/mocha-casperjs: 3: [: --reporter=spec: unexpected operator
/usr/local/bin/mocha-casperjs: 3: [: --reporter=spec: unexpected operator
nathanboktae commented 10 years ago

Good catch, thanks. My shell skills are lacking. I do need some test coverage on this too.