Skip to content

Commit

Permalink
adopted a few stylistic suggestions from CJ.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebz committed Oct 28, 2015
1 parent afbef66 commit d75ff66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/envelopes.js
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ function getTemplateView (apiToken, baseUrl, templateId, returnUrl) {
* @returns {Promise} - A thenable bluebird Promise fulfilled with the list of recipients
*/
function getRecipients (apiToken, baseUrl, envelopeId, include_tabs) {
include_tabs = include_tabs != null ? include_tabs : false;
var options = {
method: 'GET',
url: baseUrl + '/envelopes/' + envelopeId + '/recipients?include_tabs=' + include_tabs,
Expand Down
3 changes: 2 additions & 1 deletion test/component-tests/envelopes.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ let roleName = config.templateRole;
let clientUserId = '1001';
let returnUrl = 'http://www.docusign.com/devcenter';
let emailSubject = 'DocuSign API - Signature Request on Document Call';
let include_tabs = true;
let additionalParams = {};
let recipients = {
signers: [{
Expand Down Expand Up @@ -135,7 +136,7 @@ test(function getRecipients (t) {
});

test(function getRecipientsWithTabs (t) {
return client.envelopes.getRecipients(envelopeId, true)
return client.envelopes.getRecipients(envelopeId, include_tabs)
.then(response => {
t.ok(response.signers);
t.ok(response.signers[0].isBulkRecipient);
Expand Down

0 comments on commit d75ff66

Please sign in to comment.