We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
getBoundary
1 parent 426ba9a commit 837b8a1Copy full SHA for 837b8a1
test/integration/test-set-boundary.js
@@ -23,3 +23,13 @@ var FormData = require(common.dir.lib + '/form_data');
23
assert.equal(formA.getBoundary(), userBoundary);
24
assert.notEqual(formA.getBoundary(), formB.getBoundary());
25
}());
26
+
27
+(function testsetBoundaryWithNonString_preExistingBehavior() {
28
+ var form = new FormData();
29
30
+ var nonStringValues = [123, { value: 123 }, ['---something']];
31
+ nonStringValues.forEach(function (value) {
32
+ form.setBoundary(value);
33
+ assert.equal(form.getBoundary(), value);
34
+ });
35
+}());
0 commit comments