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.
 
 
 
 

36 lines
846 B

var AssetView = require('asset_manager/view/AssetView');
var Asset = require('asset_manager/model/Asset');
var Assets = require('asset_manager/model/Assets');
module.exports = {
run() {
describe('AssetView', () => {
beforeEach(function () {
var coll = new Assets();
var model = coll.add({src: 'test'});
this.view = new AssetView({
config : {},
model
});
document.body.innerHTML = '<div id="fixtures"></div>';
document.body.querySelector('#fixtures').appendChild(this.view.render().el);
});
afterEach(function () {
this.view.remove();
});
it('Object exists', () => {
expect(AssetView).toExist();
});
it('Has correct prefix', function() {
expect(this.view.pfx).toEqual('');
});
});
}
}