Skip to content

Instantly share code, notes, and snippets.

@victorjonsson
Created July 19, 2012 16:03
Show Gist options
  • Save victorjonsson/3144952 to your computer and use it in GitHub Desktop.
Save victorjonsson/3144952 to your computer and use it in GitHub Desktop.
Dokimon test example 1
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