You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
574 B
JavaScript

define([
'backbone',
'lib/markdown',
'widgets/slide/view'
], function (Backbone, markdown, SlideView) {
var Model = Backbone.Model;
describe('SlideView', function () {
it('→ exits', function () {
expect(new SlideView()).not.toBeUndefined();
});
describe('→ onRender', function () {
it('→ renders', function () {
var model = new Model({'copy': '**hello**'});
var view = new SlideView({model: model});
view.render();
expect(view.ui.copy.html()).toBe(markdown('**hello**'));
});
});
});
});