mirror of https://github.com/artf/grapesjs.git
nocodeframeworkdrag-and-dropsite-buildersite-generatortemplate-builderui-builderweb-builderweb-builder-frameworkwebsite-builderno-codepage-builder
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.
42 lines
946 B
42 lines
946 B
define(['AssetManager/view/AssetView', 'AssetManager/model/Asset', 'AssetManager/model/Assets'],
|
|
function(AssetView, Asset, Assets) {
|
|
|
|
describe('Asset Manager', function() {
|
|
|
|
describe('AssetView', function() {
|
|
|
|
before(function () {
|
|
this.$fixtures = $("#fixtures");
|
|
this.$fixture = $('<div class="asset-fixture"></div>');
|
|
});
|
|
|
|
beforeEach(function () {
|
|
var coll = new Assets();
|
|
var model = coll.add({});
|
|
this.view = new AssetView({
|
|
config : {},
|
|
model: model
|
|
});
|
|
this.$fixture.empty().appendTo(this.$fixtures);
|
|
this.$fixture.html(this.view.render().el);
|
|
});
|
|
|
|
afterEach(function () {
|
|
this.view.model.destroy();
|
|
});
|
|
|
|
after(function () {
|
|
this.$fixture.remove();
|
|
});
|
|
|
|
it('Object exists', function() {
|
|
AssetView.should.be.exist;
|
|
});
|
|
|
|
it('Has correct prefix', function() {
|
|
this.view.pfx.should.equal('');
|
|
});
|
|
|
|
});
|
|
});
|
|
});
|