diff --git a/modules/client/front/descriptor/index.html b/modules/client/front/descriptor/index.html
index 1eee5d853..634436395 100644
--- a/modules/client/front/descriptor/index.html
+++ b/modules/client/front/descriptor/index.html
@@ -79,13 +79,20 @@
+
+
+
+
-
+
{
expect(controller.save).not.toHaveBeenCalledWith();
expect(controller.checkExistingClient).toHaveBeenCalledWith();
});
+
+ it('should enable the hasToInvoice property any time the form activates the client with isActive', () => {
+ $scope.watcher.orgData.isActive = false;
+ controller.client.isActive = true;
+ controller.client.hasToInvoice = false;
+
+ controller.onSubmit();
+
+ expect(controller.client.hasToInvoice).toBe(true);
+ });
});
describe('checkExistingClient()', () => {