Created
July 19, 2012 16:03
-
-
Save victorjonsson/3144952 to your computer and use it in GitHub Desktop.
Dokimon test example 1
This file contains hidden or 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
var dokimon = require('dokimon'), | |
assert = require('assert'); | |
var checkHomepage = new dokimon.Test( | |
'HomePageIsRunning', | |
{url : '/'}, | |
function(res, body) { | |
assert.equal(res.statusCode, 200, 'My website is not responding'); | |
} | |
); | |
module.exports = checkHomepage; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment