| describe('Tenant View', () => { |
| var scope, element, isolatedScope, httpBackend; |
| beforeEach(module('xos.tenant')); |
| beforeEach(module('templates')); |
| beforeEach(inject(function($httpBackend, $compile, $rootScope){ |
| httpBackend = $httpBackend; |
| // Setting up mock request |
| scope = $rootScope.$new(); |
| element = angular.element('<users-list></users-list>'); |
| $compile(element)(scope); |
| isolatedScope = element.isolateScope().vm; |
| describe('site list table',() =>{ |
| 'instance_total_ready':'2' |
| var result = isolatedScope.returnData(sites,slices); |
| expect(result).toEqual([{ |