Matteo Scandolo | 1834728 | 2016-06-16 17:03:24 -0700 | [diff] [blame] | 1 | 'use strict'; |
| 2 | |
Matteo Scandolo | 5bae7bb | 2016-06-16 17:13:10 -0700 | [diff] [blame] | 3 | describe('The Hpc View', () => { |
Matteo Scandolo | 1834728 | 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 | 5bae7bb | 2016-06-16 17:13:10 -0700 | [diff] [blame] | 11 | |
Matteo Scandolo | 1834728 | 2016-06-16 17:03:24 -0700 | [diff] [blame] | 12 | scope = $rootScope.$new(); |
Matteo Scandolo | 5bae7bb | 2016-06-16 17:13:10 -0700 | [diff] [blame] | 13 | element = angular.element('<hpcs-list></hpcs-list>'); |
Matteo Scandolo | 1834728 | 2016-06-16 17:03:24 -0700 | [diff] [blame] | 14 | $compile(element)(scope); |
| 15 | scope.$digest(); |
| 16 | isolatedScope = element.isolateScope().vm; |
| 17 | })); |
| 18 | |
Matteo Scandolo | 5bae7bb | 2016-06-16 17:13:10 -0700 | [diff] [blame] | 19 | it('should define 2 tables', () => { |
| 20 | expect(isolatedScope.routerConfig).toBeDefined(); |
| 21 | expect(isolatedScope.cacheConfig).toBeDefined(); |
Matteo Scandolo | 1834728 | 2016-06-16 17:03:24 -0700 | [diff] [blame] | 22 | }); |
| 23 | |
| 24 | }); |