Matteo Scandolo | a8cbc9c | 2016-06-16 17:03:24 -0700 | [diff] [blame] | 1 | 'use strict'; |
| 2 | |
Matteo Scandolo | 6467f65 | 2016-06-16 17:13:10 -0700 | [diff] [blame] | 3 | describe('The Hpc View', () => { |
Matteo Scandolo | a8cbc9c | 2016-06-16 17:03:24 -0700 | [diff] [blame] | 4 | |
| 5 | var scope, element, isolatedScope, httpBackend; |
| 6 | |
| 7 | beforeEach(module('xos.hpc')); |
| 8 | beforeEach(module('templates')); |
| 9 | |
| 10 | beforeEach(inject(function($httpBackend, $compile, $rootScope){ |
Matteo Scandolo | 88b220e | 2016-06-17 11:57:05 -0700 | [diff] [blame] | 11 | httpBackend = $httpBackend; |
| 12 | httpBackend.whenGET('/xoslib/hpcview?no_hyperlinks=1').respond(200, []); |
Matteo Scandolo | a8cbc9c | 2016-06-16 17:03:24 -0700 | [diff] [blame] | 13 | scope = $rootScope.$new(); |
Matteo Scandolo | 6467f65 | 2016-06-16 17:13:10 -0700 | [diff] [blame] | 14 | element = angular.element('<hpcs-list></hpcs-list>'); |
Matteo Scandolo | a8cbc9c | 2016-06-16 17:03:24 -0700 | [diff] [blame] | 15 | $compile(element)(scope); |
| 16 | scope.$digest(); |
| 17 | isolatedScope = element.isolateScope().vm; |
| 18 | })); |
| 19 | |
Matteo Scandolo | 6467f65 | 2016-06-16 17:13:10 -0700 | [diff] [blame] | 20 | it('should define 2 tables', () => { |
| 21 | expect(isolatedScope.routerConfig).toBeDefined(); |
| 22 | expect(isolatedScope.cacheConfig).toBeDefined(); |
Matteo Scandolo | a8cbc9c | 2016-06-16 17:03:24 -0700 | [diff] [blame] | 23 | }); |
| 24 | |
| 25 | }); |