UNPKG

adlayer-library

Version:

Adlayer javascript core library

20 lines (19 loc) 653 B
var expect = expect || require('expect.js'); var document = document || require('../document'); var StaticSpace = require('../../src/spaces/static_space').StaticSpace; describe('StaticSpace', function(){ describe('__construct', function(){ it('Should render the space', function(){ var space = new StaticSpace({ document: document, id: '10', height:'300px', width: '300px' }); expect(space.element.style.height).to.be.equal(space.height); expect(space.element.style.width).to.be.equal(space.width); expect(space.element.id).to.be.equal(space.id); expect(space.element.ads).to.not.be.equal(space.ads); }); }); });