Do not save defaults for containers

This commit is contained in:
Tautvidas Sipavičius
2018-03-22 18:36:54 +02:00
committed by pavel-mailpoet
parent eb4d2ab829
commit 0d514a8084
2 changed files with 9 additions and 0 deletions

View File

@ -50,6 +50,14 @@ define([
expect(innerModel.get('styles.block.backgroundColor')).to.equal('#123456');
});
it('do not update blockDefaults.container when changed', function () {
var sandbox = sinon.sandbox.create();
var stub = sandbox.stub(EditorApplication.getConfig(), 'set');
model.trigger('change');
expect(stub.callCount).to.equal(0);
sandbox.restore();
});
});
describe('when creating with children', function () {