| describe('Tenant View', () => { |
| var scope, element, isolatedScope, httpBackend; |
| beforeEach(module('xos.tenant')); |
| beforeEach(module('templates')); |
| beforeEach(inject(function($httpBackend, $compile, $rootScope){ |
| httpBackend = $httpBackend; |
| httpBackend.whenGET('/api/core/sites/?no_hyperlinks=1').respond(200, []); |
| // Setting up mock request |
| scope = $rootScope.$new(); |
| element = angular.element('<site-list></site-list>'); |
| $compile(element)(scope); |
| isolatedScope = element.isolateScope().vm; |
| describe('site list table',() =>{ |
| 'instance_total_ready' :1 |
| 'instance_total_ready': 3 |
| 'instance_total_ready': '2' |
| var result = isolatedScope.returnData(sites,slices); |