Refactor block highlight to be managed fully by highlight behavior
[MAILPOET-1819]
This commit is contained in:
committed by
M. Shull
parent
c526ba97e0
commit
d69e0dea9e
@ -278,6 +278,10 @@ describe('Container', function () {
|
||||
var settingsView;
|
||||
var blockView = new (ContainerBlock.ContainerBlockView)({ model: model });
|
||||
blockView.render();
|
||||
// Set proper depth since we want to highlight only top level containers
|
||||
blockView.renderOptions = {
|
||||
depth: 1,
|
||||
};
|
||||
expect(blockView.$el.hasClass('mailpoet_highlight')).to.equal(false);
|
||||
settingsView = new (ContainerBlock.ContainerBlockSettingsView)({ model: model });
|
||||
settingsView.render();
|
||||
|
Reference in New Issue
Block a user