Free and Open source Web Builder Framework. Next generation tool for building templates without coding
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

44 lines
820 B

var path = 'Commands/model/';
define([path + 'Command', path + 'Commands'],
function(Command, Commands) {
return {
run : function(){
describe('Command', function() {
var obj;
beforeEach(function () {
obj = new Command();
});
afterEach(function () {
delete obj;
});
it('Has id property', function() {
obj.has('id').should.equal(true);
});
});
describe('Commands', function() {
var obj;
beforeEach(function () {
obj = new Commands();
});
afterEach(function () {
delete obj;
});
it('Object is ok', function() {
obj.should.be.ok;
});
});
}
};
});