Skip to content
Snippets Groups Projects
Verified Commit 606275da authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett
Browse files

Update specs

parent 04eaed80
Branches
Tags
No related merge requests found
Loading
@@ -26,4 +26,10 @@ describe('constants', function () {
Loading
@@ -26,4 +26,10 @@ describe('constants', function () {
expect(constants.ACTIVE_CLASS).toBe('droplab-item-active'); 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);
});
});
}); });
Loading
@@ -429,7 +429,7 @@ describe('DropDown', function () {
Loading
@@ -429,7 +429,7 @@ describe('DropDown', function () {
this.html = 'html'; this.html = 'html';
this.template = { firstChild: { outerHTML: 'outerHTML', style: {} } }; 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(document, 'createElement').and.returnValue(this.template);
spyOn(this.dropdown, 'setImagesSrc'); spyOn(this.dropdown, 'setImagesSrc');
   
Loading
@@ -437,7 +437,7 @@ describe('DropDown', function () {
Loading
@@ -437,7 +437,7 @@ describe('DropDown', function () {
}); });
   
it('should call utils.t with .templateString and data', 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 () { it('should call document.createElement', function () {
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment