grapesjs
Version:
Free and Open Source Web Builder Framework
39 lines (30 loc) • 643 B
JavaScript
import Command from 'commands/model/Command';
import Commands from 'commands';
module.exports = {
run() {
describe('Command', () => {
let obj;
beforeEach(() => {
obj = new Command();
});
afterEach(() => {
obj = null;
});
test('Has id property', () => {
expect(obj.has('id')).toEqual(true);
});
});
describe('Commands', () => {
var obj;
beforeEach(() => {
obj = new Commands();
});
afterEach(() => {
obj = null;
});
test('Object is ok', () => {
expect(obj).toBeTruthy();
});
});
}
};