Ivan - Create Ticket Form - Fix some test adding swap to Array.prototype [skip ci]

This commit is contained in:
ivan 2016-08-18 23:38:22 -03:00
parent ac5975cf8b
commit d88dd59ab5
1 changed files with 8 additions and 1 deletions

View File

@ -34,4 +34,11 @@ global.reRenderIntoDocument = (function () {
})();
global.ReduxMock = {
connect: stub().returns(stub().returnsArg(0))
};
};
Array.prototype.swap = function (x,y) {
var b = this[x];
this[x] = this[y];
this[y] = b;
return this;
};