added a describe to help further implementation
This commit is contained in:
parent
6f78bc61db
commit
0fe58f78b4
|
@ -18,16 +18,18 @@ describe('Client', () => {
|
||||||
controller = $componentController('vnClientCreditInsuranceInsuranceIndex', {$stateParams: $stateParams});
|
controller = $componentController('vnClientCreditInsuranceInsuranceIndex', {$stateParams: $stateParams});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('should perform a query to GET credit the credit classification', () => {
|
describe('$onInit()', () => {
|
||||||
let res = [{finished: 'some value'}];
|
it('should perform a query to GET credit the credit classification', () => {
|
||||||
let query = '/client/api/CreditClassifications?filter=%7B%22fields%22%3A%5B%22finished%22%5D%2C%22where%22%3A%7B%22id%22%3A1%7D%7D';
|
let res = [{finished: 'some value'}];
|
||||||
|
let query = '/client/api/CreditClassifications?filter=%7B%22fields%22%3A%5B%22finished%22%5D%2C%22where%22%3A%7B%22id%22%3A1%7D%7D';
|
||||||
|
|
||||||
$httpBackend.whenGET(query).respond(res);
|
$httpBackend.whenGET(query).respond(res);
|
||||||
$httpBackend.expectGET(query);
|
$httpBackend.expectGET(query);
|
||||||
controller.$onInit();
|
controller.$onInit();
|
||||||
$httpBackend.flush();
|
$httpBackend.flush();
|
||||||
|
|
||||||
expect(controller.isClosed).toBe(true);
|
expect(controller.isClosed).toBe(true);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue