Skip to content

Commit

Permalink
MAGETWO-54733: Unable to save product with all unchecked values for m…
Browse files Browse the repository at this point in the history
…ultiple select attribute #7687
  • Loading branch information
VladimirZaets committed Jan 17, 2017
1 parent 72bd339 commit 146c196
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions dev/tests/js/jasmine/tests/lib/mage/misc.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ define([
expect(utils.convertToMomentFormat(format)).toBe(momentFormat);
});

it('Check "filterFormData" method', function () {
var suffix = 'prepared-for-send',
separator = '-',
data = {
key: 'value-prepared-before-save'
};
expect(utils.filterFormData(data, suffix, separator)).toEqual(data);
expect(utils.filterFormData(data, suffix)).toEqual(data);
expect(utils.filterFormData(data)).toEqual(data);
});

it('Check convertToMomentFormat function for all Magento supported locales', function () {

var fixture,
Expand Down

0 comments on commit 146c196

Please sign in to comment.