Matteo Scandolo | ef96992 | 2016-08-11 13:49:12 -0700 | [diff] [blame] | 1 | 'use strict'; |
| 2 | |
| 3 | describe('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 | }); |