mirror of https://github.com/artf/grapesjs.git
7 changed files with 60 additions and 13 deletions
@ -0,0 +1,31 @@ |
|||
define(['GrapesJS', 'PluginManager'], |
|||
function(GrapesJS, PluginManager) { |
|||
|
|||
describe('GrapesJS', function() { |
|||
|
|||
describe('Main', function() { |
|||
|
|||
var obj; |
|||
|
|||
beforeEach(function () { |
|||
obj = new GrapesJS(); |
|||
}); |
|||
|
|||
afterEach(function () { |
|||
delete obj; |
|||
}); |
|||
|
|||
it('main object should be loaded', function() { |
|||
obj.should.be.exist; |
|||
}); |
|||
|
|||
it('Init new editor', function() { |
|||
var editor = obj.init(); |
|||
editor.should.not.be.empty; |
|||
}); |
|||
|
|||
}); |
|||
|
|||
}); |
|||
|
|||
}); |
|||
Loading…
Reference in new issue