Fix form input padding mapping

[MAILPOET-2930]
This commit is contained in:
Rostislav Wolny
2020-05-19 13:41:26 +02:00
committed by Veljko V
parent a23d0e7e17
commit c99e04ad49
2 changed files with 14 additions and 1 deletions

View File

@@ -63,5 +63,18 @@ describe('Form Data Load Mapper', () => {
expect(map(data).settings).to.have.property('formPadding', 10);
expect(map(data).settings).to.have.property('inputPadding', 5);
});
it('Maps form and input padding', () => {
const mapData = {
...data,
settings: {
...data.settings,
form_padding: 50,
input_padding: 20,
},
};
expect(map(mapData).settings).to.have.property('formPadding', 50);
expect(map(mapData).settings).to.have.property('inputPadding', 20);
});
});
});