mirror of https://github.com/artf/grapesjs.git
3 changed files with 76 additions and 11 deletions
@ -0,0 +1,44 @@ |
|||||
|
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; |
||||
|
}); |
||||
|
|
||||
|
}); |
||||
|
|
||||
|
} |
||||
|
}; |
||||
|
|
||||
|
}); |
||||
Loading…
Reference in new issue