Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A question about the MochaWeb check in examples.. #43

Open
brugnara opened this issue Apr 14, 2015 · 1 comment
Open

A question about the MochaWeb check in examples.. #43

brugnara opened this issue Apr 14, 2015 · 1 comment
Assignees

Comments

@brugnara
Copy link

Why in the examples is not used the more simple syntax:

MochaWeb && MochaWeb.testOnly(function(){

instead of:

if (!(typeof MochaWeb === 'undefined')){
  MochaWeb.testOnly(function(){

Are there some technical issues I did not considered? Thanks.

@ghost ghost assigned rissem Apr 15, 2015
@ghost
Copy link

ghost commented Apr 15, 2015

Are there some technical issues I did not considered? Thanks.

No. With the latest version of mike:mocha you can even just use MochaWeb.testOnly(function(){ without problems I think.

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

No branches or pull requests

2 participants