From bbeca87295bb0d36f553218b6e44679e680ee2b9 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Mon, 9 Mar 2020 12:22:55 +0100 Subject: [PATCH] 2172 - Added unit test --- front/core/directives/specs/http-click.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/core/directives/specs/http-click.spec.js b/front/core/directives/specs/http-click.spec.js index d6b3d9e3b..ac8e77075 100644 --- a/front/core/directives/specs/http-click.spec.js +++ b/front/core/directives/specs/http-click.spec.js @@ -14,7 +14,7 @@ fdescribe('Directive http-click', () => { }); }; - xit('should call click function on the element, disable it and then enable it again', () => { + it('should call click function on the element, disable it and then enable it again', () => { let html = ``; compile(html); @@ -56,7 +56,7 @@ fdescribe('Directive http-click', () => { myPromise.then(() => { finalValue = 'called!'; - expect(element[0].$ctrl.disabled).toEqual(false); + expect(element[0].$ctrl.disabled).toEqual(true); }).finally(() => { expect(finalValue).toEqual('called!'); }).catch(err => {