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