From bd20f762743895b43650e24c98b4a4828d1954c0 Mon Sep 17 00:00:00 2001 From: Carlos Date: Thu, 14 Sep 2017 09:22:49 +0200 Subject: [PATCH] test for autocomplete client side --- .../src/autocomplete/autocomplete.spec.js | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/client/core/src/autocomplete/autocomplete.spec.js b/client/core/src/autocomplete/autocomplete.spec.js index ed22aa513..71b1331f3 100644 --- a/client/core/src/autocomplete/autocomplete.spec.js +++ b/client/core/src/autocomplete/autocomplete.spec.js @@ -4,3 +4,29 @@ describe('Core', () => { describe('Component mdlUpdate', () => { }); }); + + +// import './address-create.js'; + +// describe('Client', () => { +// describe('Component vnAddressCreate', () => { +// let $componentController; +// let $state; + +// beforeEach(() => { +// angular.mock.module('client'); +// }); + +// beforeEach(angular.mock.inject((_$componentController_, _$state_) => { +// $componentController = _$componentController_; +// $state = _$state_; +// $state.params.id = '1234'; +// })); + +// it('should define and set address property', () => { +// let controller = $componentController('vnAddressCreate', {$state: $state}); +// expect(controller.address.clientFk).toBe(1234); +// expect(controller.address.enabled).toBe(true); +// }); +// }); +// });