blob: 0af68b99fdcfe6a55954a132d4eba13bac83aa43 [file] [log] [blame]
Matteo Scandoloef969922016-08-11 13:49:12 -07001'use strict';
2
3describe('The TemplateHandler service', () => {
4
5 var TemplateHandler;
6
7 beforeEach(module('xos.UITutorial'));
8 beforeEach(module('templates'));
9
10 beforeEach(inject(function (_TemplateHandler_) {
11 TemplateHandler = _TemplateHandler_;
12 }));
13
14 const templates = ['error', 'instructions', 'resourcesResponse'];
15
16 templates.forEach(t => {
17 it(`should have a ${t} template`, () => {
18 expect(TemplateHandler[t]).toBeDefined();
19 expect(angular.isFunction(TemplateHandler[t])).toBeTruthy();
20 });
21 });
22});