Skip to content

Commit 146c196

Browse files
committed
MAGETWO-54733: Unable to save product with all unchecked values for multiple select attribute #7687
1 parent 72bd339 commit 146c196

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

dev/tests/js/jasmine/tests/lib/mage/misc.test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ define([
1919
expect(utils.convertToMomentFormat(format)).toBe(momentFormat);
2020
});
2121

22+
it('Check "filterFormData" method', function () {
23+
var suffix = 'prepared-for-send',
24+
separator = '-',
25+
data = {
26+
key: 'value-prepared-before-save'
27+
};
28+
expect(utils.filterFormData(data, suffix, separator)).toEqual(data);
29+
expect(utils.filterFormData(data, suffix)).toEqual(data);
30+
expect(utils.filterFormData(data)).toEqual(data);
31+
});
32+
2233
it('Check convertToMomentFormat function for all Magento supported locales', function () {
2334

2435
var fixture,

0 commit comments

Comments
 (0)