Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb22a64e

Browse files
Mallikarjun-0ljharb
authored andcommitted
[Tests] add tests to check the behavior ofgetBoundary with non-strings
1 parent1a78b5d commitb22a64e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎test/integration/test-set-boundary.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,13 @@ var FormData = require(common.dir.lib + '/form_data');
2323
assert.equal(formA.getBoundary(),userBoundary);
2424
assert.notEqual(formA.getBoundary(),formB.getBoundary());
2525
}());
26+
27+
(functiontestsetBoundaryWithNonString_preExistingBehavior(){
28+
varform=newFormData();
29+
30+
varnonStringValues=[123,{value:123},['---something']];
31+
nonStringValues.forEach(function(value){
32+
form.setBoundary(value);
33+
assert.equal(form.getBoundary(),value);
34+
});
35+
}());

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp