Browse Source

Fix tests

pull/3167/head
Artur Arseniev 5 years ago
parent
commit
089a50a12b
  1. 1
      src/panels/view/ButtonView.js
  2. 2
      test/specs/editor/index.js
  3. 2
      test/specs/grapesjs/index.js
  4. 2
      test/specs/panels/view/ButtonView.js

1
src/panels/view/ButtonView.js

@ -136,6 +136,7 @@ export default Backbone.View.extend({
* */ * */
clicked(e) { clicked(e) {
const { model } = this; const { model } = this;
if (model.get('bntsVis') || model.get('disable') || !model.get('command')) if (model.get('bntsVis') || model.get('disable') || !model.get('command'))
return; return;

2
test/specs/editor/index.js

@ -3,7 +3,7 @@ import Editor from 'editor';
const { keys } = Object; const { keys } = Object;
const initComps = 1; const initComps = 1;
describe.only('Editor', () => { describe('Editor', () => {
let editor; let editor;
beforeEach(() => { beforeEach(() => {

2
test/specs/grapesjs/index.js

@ -85,7 +85,7 @@ describe('GrapesJS', () => {
expect(editor.getStyle().length).toEqual(0); expect(editor.getStyle().length).toEqual(0);
}); });
test.only('Editor canvas baseCSS can be overwritten', () => { test('Editor canvas baseCSS can be overwritten', () => {
config.components = htmlString; config.components = htmlString;
config.baseCss = '#wrapper { background-color: #eee; }'; config.baseCss = '#wrapper { background-color: #eee; }';
config.protectedCss = ''; config.protectedCss = '';

2
test/specs/panels/view/ButtonView.js

@ -8,7 +8,7 @@ describe('ButtonView', () => {
var btnClass = 'btn'; var btnClass = 'btn';
beforeEach(() => { beforeEach(() => {
model = new Button(); model = new Button({ command: 'fake-command' });
view = new ButtonView({ view = new ButtonView({
model: model model: model
}); });

Loading…
Cancel
Save