2172 - Added unit test
gitea/salix/pipeline/head This commit has test failures
Details
gitea/salix/pipeline/head This commit has test failures
Details
This commit is contained in:
parent
e0f87b4b06
commit
bbeca87295
|
@ -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()"/>`;
|
||||
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 => {
|
||||
|
|
Loading…
Reference in New Issue