From 0fe58f78b47ec2cc4d8e0182d808a16f6c7f3392 Mon Sep 17 00:00:00 2001 From: Carlos Jimenez <=> Date: Tue, 31 Jul 2018 12:00:44 +0200 Subject: [PATCH] added a describe to help further implementation --- .../index/credit-insurance-list.spec.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/client/client/src/credit-insurance/insurance/index/credit-insurance-list.spec.js b/client/client/src/credit-insurance/insurance/index/credit-insurance-list.spec.js index 38c43fce7..58237757b 100644 --- a/client/client/src/credit-insurance/insurance/index/credit-insurance-list.spec.js +++ b/client/client/src/credit-insurance/insurance/index/credit-insurance-list.spec.js @@ -18,16 +18,18 @@ describe('Client', () => { controller = $componentController('vnClientCreditInsuranceInsuranceIndex', {$stateParams: $stateParams}); })); - it('should perform a query to GET credit the credit classification', () => { - 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'; + describe('$onInit()', () => { + it('should perform a query to GET credit the credit classification', () => { + 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.expectGET(query); - controller.$onInit(); - $httpBackend.flush(); + $httpBackend.whenGET(query).respond(res); + $httpBackend.expectGET(query); + controller.$onInit(); + $httpBackend.flush(); - expect(controller.isClosed).toBe(true); + expect(controller.isClosed).toBe(true); + }); }); }); });