Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Issue#90 - code cleanup

  • Loading branch information...
commit 9039058b36a00538b94041d9a29ceac782d7d451 1 parent b154f0a
Pradeep Murugesan pradeepmurugesan authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 test/baker-controller-test.js
10 test/baker-controller-test.js
View
@@ -47,11 +47,13 @@ var scope = nock('http://example.com')
.intercept('/image-award.png', 'HEAD').reply(200, '', { 'Content-Type': 'image/png' })
.get('/image-award.png').reply(200, imagedata, { 'Content-Type': 'image/png' })
- .intercept('/invalidAssertion','HEAD').reply(200,'')
- .get('/invalidAssertion').reply(200,fixture({
+ .intercept('/invalidAssertion', 'HEAD').reply(200, '')
+ .get('/invalidAssertion')
+ .reply(200, fixture({
'badge.image': 'http://example.com/image.png',
+ // invalid content for email
'recipient': 'example.com'
- }),{'Content-Type': 'application/json'})
+ }), { 'Content-Type': 'application/json' })
;
mysql.prepareTesting();
@@ -141,7 +143,7 @@ vows.describe('baker controller testing').addBatch({
'Valid assertion url, but invalid assertion content':{
topic: function(){
var req = { query: { assertion: 'http://example.com/invalidAssertion'}};
- conmock(controller.baker,req,this.callback);
+ conmock(controller.baker, req, this.callback);
},
'returns 400, Invalid Assertion': function(error, mock){
mock.status.should.equal(400);
Please sign in to comment.
Something went wrong with that request. Please try again.