UNPKG

grapesjs_codeapps

Version:

Free and Open Source Web Builder Framework/SC Modification

39 lines (30 loc) 653 B
const Command = require('commands/model/Command'); const Commands = require('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(); }); }); } };