Update specs
This commit is contained in:
parent
04eaed8088
commit
606275da6f
|
@ -26,4 +26,10 @@ describe('constants', function () {
|
|||
expect(constants.ACTIVE_CLASS).toBe('droplab-item-active');
|
||||
});
|
||||
});
|
||||
|
||||
describe('TEMPLATE_REGEX', function () {
|
||||
it('should be a handlebars templating syntax regex', function() {
|
||||
expect(constants.TEMPLATE_REGEX).toEqual(/\{\{(.+?)\}\}/g);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -429,7 +429,7 @@ describe('DropDown', function () {
|
|||
this.html = 'html';
|
||||
this.template = { firstChild: { outerHTML: 'outerHTML', style: {} } };
|
||||
|
||||
spyOn(utils, 't').and.returnValue(this.html);
|
||||
spyOn(utils, 'template').and.returnValue(this.html);
|
||||
spyOn(document, 'createElement').and.returnValue(this.template);
|
||||
spyOn(this.dropdown, 'setImagesSrc');
|
||||
|
||||
|
@ -437,7 +437,7 @@ describe('DropDown', function () {
|
|||
});
|
||||
|
||||
it('should call utils.t with .templateString and data', function () {
|
||||
expect(utils.t).toHaveBeenCalledWith(this.templateString, this.data);
|
||||
expect(utils.template).toHaveBeenCalledWith(this.templateString, this.data);
|
||||
});
|
||||
|
||||
it('should call document.createElement', function () {
|
||||
|
|
Loading…
Reference in New Issue