blob: 0b08084e163e5c482503580adcb4d8746530a867 [file] [log] [blame]
'use strict';
describe('The Hpc View', () => {
var scope, element, isolatedScope, httpBackend;
beforeEach(module('xos.hpc'));
beforeEach(module('templates'));
beforeEach(inject(function($httpBackend, $compile, $rootScope){
httpBackend = $httpBackend;
httpBackend.whenGET('/xoslib/hpcview?no_hyperlinks=1').respond(200, []);
scope = $rootScope.$new();
element = angular.element('<hpcs-list></hpcs-list>');
$compile(element)(scope);
scope.$digest();
isolatedScope = element.isolateScope().vm;
}));
it('should define 2 tables', () => {
expect(isolatedScope.routerConfig).toBeDefined();
expect(isolatedScope.cacheConfig).toBeDefined();
});
});