Created
November 24, 2011 03:19
-
-
Save bingomanatee/1390556 to your computer and use it in GitHub Desktop.
mocha test ... why?
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
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(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment