Skip to content

Commit 2442f05

Browse files
acooper4960DevCenter-DocuSign
andauthored
Version 4.13.1-v2-21.2.00.00 release (#264)
Co-authored-by: DevCenter-DocuSign <[email protected]>
1 parent ba6dae9 commit 2442f05

File tree

4 files changed

+41
-33
lines changed

4 files changed

+41
-33
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# DocuSign Node Client Changelog
22

33
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
4+
5+
## [v4.13.1] - eSignature API v2-21.2.00.00 (07/29/2021)
6+
### Changed
7+
- Updated Get Form Data unit test.
8+
- Updated Travis-CI badge in README.md
9+
410
## [v4.13.0] - eSignature API v2-21.2.00.00
511
### Changed
612
- Added support for version v2-21.2.00.00 of the DocuSign eSignature API.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The DocuSign eSignature Node Client SDK is licensed under the [MIT License](http
6767
[npm-url]: https://npmjs.org/package/docusign-esign
6868
[downloads-image]: https://img.shields.io/npm/dm/docusign-esign.svg?style=flat
6969
[downloads-url]: https://npmjs.org/package/docusign-esign
70-
[travis-image]: https://img.shields.io/travis/docusign/docusign-node-client.svg?style=flat
71-
[travis-url]: https://travis-ci.org/docusign/docusign-node-client
70+
[travis-image]: https://travis-ci.com/docusign/docusign-esign-node-client.svg?branch=v2-master
71+
[travis-url]: https://travis-ci.com/docusign/docusign-esign-node-client
7272
[coveralls-image]: https://coveralls.io/repos/github/docusign/DocuSign-Node-Client/badge.svg?branch=master
73-
[coveralls-url]: https://coveralls.io/github/docusign/DocuSign-Node-Client?branch=master
73+
[coveralls-url]: https://coveralls.io/github/docusign/DocuSign-Node-Client?branch=master

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docusign-esign",
3-
"version": "4.13.0",
3+
"version": "4.13.1",
44
"description": "DocuSign Node.js API client.",
55
"license": "MIT",
66
"main": "src/index.js",

test/SdkUnitTests.js

Lines changed: 31 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,36 +1243,38 @@ describe('SDK Unit Tests:', function (done) {
12431243
});
12441244
});
12451245

1246-
it('Test Get Form Data', function(done) {
1247-
var envelopeId = "137e8369-3242-438e-ab0f-4808ec6047cd";
1246+
it('Test Get Form Data', function (done) {
12481247
var envelopesApi = new docusign.EnvelopesApi(apiClient);
1249-
envelopesApi.getFormData(accountId, envelopeId).then(function (envelopeFormData) {
1250-
// console.log('EnvelopeFormData: ' + JSON.stringify(envelopeFormData));
1251-
// console.log('EnvelopeFormData: ', envelopeFormData);
1252-
1253-
// NOTE: Need to check against the following values...
1254-
// envelopeFormData
1255-
// envelopeFormData.formData
1256-
// envelopeFormData.formData[0]
1257-
// envelopeFormData.formData[0].name
1258-
// envelopeFormData.prefillFormData.formData
1259-
// envelopeFormData.prefillFormData.formData[0]
1260-
// envelopeFormData.prefillFormData.formData[0].name
1261-
1262-
assert.notStrictEqual(envelopeFormData, null || undefined);
1263-
assert.notStrictEqual(envelopeFormData.formData, null || undefined);
1264-
assert.notStrictEqual(envelopeFormData.formData[0], null || undefined);
1265-
assert.notStrictEqual(envelopeFormData.formData[0].name, null || undefined);
1266-
assert.notStrictEqual(envelopeFormData.prefillFormData, null || undefined);
1267-
assert.notStrictEqual(envelopeFormData.prefillFormData.formData, null || undefined);
1268-
assert.notStrictEqual(envelopeFormData.prefillFormData.formData[0], null || undefined);
1269-
assert.notStrictEqual(envelopeFormData.prefillFormData.formData[0].name, null || undefined);
1270-
done();
1248+
1249+
// create an envelope to be signed
1250+
var envDef = new docusign.EnvelopeDefinition();
1251+
envDef.templateId = templateId;
1252+
1253+
envelopesApi.createEnvelope(accountId, { envelopeDefinition: envDef })
1254+
.then(function (envelopeSummary) {
1255+
assert.equal(envelopeSummary && Object.keys(envelopeSummary).length > 0, true);
1256+
envelopeId = envelopeSummary.envelopeId;
1257+
envelopesApi.getFormData(accountId, envelopeId).then(function (envelopeFormData) {
1258+
assert.notStrictEqual(envelopeFormData, undefined);
1259+
assert.notStrictEqual(envelopeFormData.formData, undefined);
1260+
assert.notStrictEqual(envelopeFormData.formData[0], undefined);
1261+
assert.notStrictEqual(envelopeFormData.formData[0].name, undefined);
1262+
assert.notStrictEqual(envelopeFormData.prefillFormData, undefined);
1263+
assert.notStrictEqual(envelopeFormData.prefillFormData.formData, undefined);
1264+
assert.notStrictEqual(envelopeFormData.prefillFormData.formData[0], undefined);
1265+
assert.notStrictEqual(envelopeFormData.prefillFormData.formData[0].name, undefined);
1266+
done();
1267+
})
1268+
.catch(function (error) {
1269+
if (error) {
1270+
return done(error);
1271+
}
1272+
});
12711273
})
1272-
.catch(function (error) {
1273-
if (error) {
1274-
return done(error);
1275-
}
1276-
});
1274+
.catch(function (error) {
1275+
if (error) {
1276+
return done(error);
1277+
}
1278+
});
12771279
});
12781280
});

0 commit comments

Comments
 (0)