Created
September 17, 2013 23:17
-
-
Save paulfryzel/6602029 to your computer and use it in GitHub Desktop.
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
test('POST /photos', function (t) { | |
var payload = JSON.stringify(sample); | |
var route = { method: 'POST', url: '/photos', payload: payload}; | |
server.inject(route, function (res) { | |
t.equal(200, res.statusCode, 'Should respond with 200'); | |
t.ok(res.result, 'Should return a result'); | |
sample._id = res.result.fields._id; | |
t.end(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment