Skip to content

Instantly share code, notes, and snippets.

@bingomanatee
Created November 24, 2011 03:21
Show Gist options
  • Save bingomanatee/1390560 to your computer and use it in GitHub Desktop.
Save bingomanatee/1390560 to your computer and use it in GitHub Desktop.
mocha test ... why?
describe('basic', function () {
var app;
var content = 'hello world';
before(function (done) {
console.log('requiring server');
//app = require('./strata_server/app');
// console.log('server: ', util.inspect(app));
done();
});
describe('#body', function (done) {
console.log('mock request');
/* mock.request({requestMethod:"GET"}, app,
function (err, status, headers, body) {
console.log('err', util.inspect(err));
console.log('status', util.inspect(status));
console.log('headers', util.inspect(headers));
console.log('body', body);
if (body != content) throw new Error('body (' + body + ') is not content');
done();
}); */
done();
});
});
@tj
Copy link

tj commented Nov 25, 2011

oh hahhaha i just noticed you have describe('', function(){ and your assertions in there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment