Browse Source

Fix tests

pull/1800/head
Artur Arseniev 8 years ago
parent
commit
c359844ac9
  1. 6
      test/specs/commands/index.js
  2. 2
      test/specs/grapesjs/index.js

6
test/specs/commands/index.js

@ -29,7 +29,8 @@ describe('Commands', () => {
default:
}
return null;
}
},
logWarning() {}
};
beforeEach(() => {
@ -65,10 +66,7 @@ describe('Commands', () => {
expect(obj.get('select-comp')).not.toBeUndefined();
expect(obj.get('create-comp')).not.toBeUndefined();
expect(obj.get('delete-comp')).not.toBeUndefined();
expect(obj.get('image-comp')).not.toBeUndefined();
expect(obj.get('move-comp')).not.toBeUndefined();
expect(obj.get('text-comp')).not.toBeUndefined();
expect(obj.get('insert-custom')).not.toBeUndefined();
expect(obj.get('export-template')).not.toBeUndefined();
expect(obj.get('sw-visibility')).not.toBeUndefined();
expect(obj.get('open-layers')).not.toBeUndefined();

2
test/specs/grapesjs/index.js

@ -345,7 +345,7 @@ describe('GrapesJS', () => {
ed.testVal = ed.getHtml() + opts.val;
}
});
editor.stopCommand('test-command', { val: 5 });
editor.stopCommand('test-command', { val: 5, force: 1 });
expect(editor.testVal).toEqual(htmlString + '5');
});

Loading…
Cancel
Save