Created
February 23, 2015 19:13
-
-
Save DinisCruz/324e8dd97249cda5da23 to your computer and use it in GitHub Desktop.
mocha tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'test suite xyz', -> | |
skip_Tests_If_Offline = (testSuite,next)=> | |
url = "https://www.google.com" | |
url.GET (html)=> | |
if not html | |
for test in testSuite.tests | |
test.pending = true | |
next() | |
before (done)-> | |
skip_Tests_If_Offline @.test.parent, done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment