cartodb/lib/assets/test/spec/builder/components/mosaic/mosaic-view.spec.js
2020-06-15 10:58:47 +08:00

20 lines
440 B
JavaScript

var MosaicView = require('builder/components/mosaic/mosaic-view');
describe('components/mosaic/mosaic-view', function () {
beforeEach(function () {
this.view = new MosaicView({
options: [
{ val: 'hello', selected: true },
{ val: 'howdy' },
{ val: 'hi' }
]
});
this.view.render();
});
it('should render properly', function () {
expect(this.view.$('li').length).toBe(3);
});
});