Created
November 24, 2017 14:39
-
-
Save allomov/3d8aaa44f3a415df1a882ad79abb62d7 to your computer and use it in GitHub Desktop.
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
const request = require('request'); | |
module.exports = { | |
describe_if_reachable: function(targetUrl, name, testDescription) { | |
request(targetUrl, {}, function(err, res, body) { | |
if (err) { | |
describe.skip(name, testDescription); | |
} else { | |
describe(name, testDescription); | |
} | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment