Skip to content

Commit

Permalink
fix(email): fix email launch params
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Marton committed Sep 21, 2015
1 parent 6eb0e5f commit c8e4941
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/endpoints/email/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ _.extend(Email.prototype, {
},

launchList: function(payload, options) {
return this._requireParameters(payload, ['emailid']).then(function() {
return this._requireParameters(payload, ['emailId']).then(function() {
logger.log('email_getlaunchesofemail');

return this._request.post(
Expand Down
6 changes: 3 additions & 3 deletions api/endpoints/email/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,12 @@ describe('SuiteAPI Email endpoint', function() {

describe('#launchList', function() {
testApiMethod(EmailAPI, 'launchList').withArgs({
emailid: 32
emailId: 32
}).shouldPostToEndpoint('/email/getlaunchesofemail', {
emailid: 32
emailId: 32
});

testApiMethod(EmailAPI, 'launchList').withArgs({}).shouldThrowMissingParameterError('emailid');
testApiMethod(EmailAPI, 'launchList').withArgs({}).shouldThrowMissingParameterError('emailId');
});

});

0 comments on commit c8e4941

Please sign in to comment.