Skip to content

Commit 42486e8

Browse files
committed
[DCS] Fixes a failing test for Node.js 0.12
The test needed to be updated to not use features from ECMAScript 6. (String.prototype.startsWith)
1 parent 4c0b58e commit 42486e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/test.document_conversion.v1-experimental.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ describe('document_conversion', function() {
7373

7474
it('should generate a valid payload', function() {
7575
var req = servInstance.convert(payload, noop);
76-
assert(req.uri.href.startsWith(service_options.url + convertPath));
76+
var url = service_options.url + convertPath;
77+
assert.equal(req.uri.href.slice(0, url.length), url);
7778
assert.equal(req.method, 'POST');
7879
assert(req.formData);
7980
});

0 commit comments

Comments
 (0)