2172 - Added unit test
gitea/salix/pipeline/head This commit has test failures Details

This commit is contained in:
Joan Sanchez 2020-03-09 12:22:55 +01:00
parent e0f87b4b06
commit bbeca87295
1 changed files with 2 additions and 2 deletions

View File

@ -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 = `<input vn-http-click="myEvent()"/>`; let html = `<input vn-http-click="myEvent()"/>`;
compile(html); compile(html);
@ -56,7 +56,7 @@ fdescribe('Directive http-click', () => {
myPromise.then(() => { myPromise.then(() => {
finalValue = 'called!'; finalValue = 'called!';
expect(element[0].$ctrl.disabled).toEqual(false); expect(element[0].$ctrl.disabled).toEqual(true);
}).finally(() => { }).finally(() => {
expect(finalValue).toEqual('called!'); expect(finalValue).toEqual('called!');
}).catch(err => { }).catch(err => {