object-to-formdata
Advanced tools
Comparing version 4.5.0 to 4.5.1
{ | ||
"name": "object-to-formdata", | ||
"version": "4.5.0", | ||
"version": "4.5.1", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "form", |
@@ -332,2 +332,18 @@ const { serialize } = require('.'); | ||
test('Array with allowEmptyArrays and noAttributesWithArrayNotation options', () => { | ||
const formData = serialize( | ||
{ | ||
foo: [], | ||
}, | ||
{ | ||
allowEmptyArrays: true, | ||
noAttributesWithArrayNotation: true, | ||
}, | ||
); | ||
expect(formData.append).toHaveBeenCalledTimes(1); | ||
expect(formData.append).toHaveBeenNthCalledWith(1, 'foo', ''); | ||
expect(formData.get('foo')).toBe(''); | ||
}); | ||
test('Date', () => { | ||
@@ -334,0 +350,0 @@ const foo = new Date(2000, 0, 1, 1, 1, 1); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18068
469