blob: 0b08084e163e5c482503580adcb4d8746530a867 [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 Scandolo88b220e2016-06-17 11:57:05 -070011 httpBackend = $httpBackend;
12 httpBackend.whenGET('/xoslib/hpcview?no_hyperlinks=1').respond(200, []);
Matteo Scandoloa8cbc9c2016-06-16 17:03:24 -070013 scope = $rootScope.$new();
Matteo Scandolo6467f652016-06-16 17:13:10 -070014 element = angular.element('<hpcs-list></hpcs-list>');
Matteo Scandoloa8cbc9c2016-06-16 17:03:24 -070015 $compile(element)(scope);
16 scope.$digest();
17 isolatedScope = element.isolateScope().vm;
18 }));
19
Matteo Scandolo6467f652016-06-16 17:13:10 -070020 it('should define 2 tables', () => {
21 expect(isolatedScope.routerConfig).toBeDefined();
22 expect(isolatedScope.cacheConfig).toBeDefined();
Matteo Scandoloa8cbc9c2016-06-16 17:03:24 -070023 });
24
25});