blob: 9949b08b7c55325bb2bfdd4d5e228ac4e48ed9a6 [file] [log] [blame]
Matteo Scandolo18347282016-06-16 17:03:24 -07001'use strict';
2
Matteo Scandolo5bae7bb2016-06-16 17:13:10 -07003describe('The Hpc View', () => {
Matteo Scandolo18347282016-06-16 17:03:24 -07004
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 Scandolo5bae7bb2016-06-16 17:13:10 -070011
Matteo Scandolo18347282016-06-16 17:03:24 -070012 scope = $rootScope.$new();
Matteo Scandolo5bae7bb2016-06-16 17:13:10 -070013 element = angular.element('<hpcs-list></hpcs-list>');
Matteo Scandolo18347282016-06-16 17:03:24 -070014 $compile(element)(scope);
15 scope.$digest();
16 isolatedScope = element.isolateScope().vm;
17 }));
18
Matteo Scandolo5bae7bb2016-06-16 17:13:10 -070019 it('should define 2 tables', () => {
20 expect(isolatedScope.routerConfig).toBeDefined();
21 expect(isolatedScope.cacheConfig).toBeDefined();
Matteo Scandolo18347282016-06-16 17:03:24 -070022 });
23
24});