Ivan - Create Ticket Form - Fix some test adding swap to Array.prototype [skip ci]
This commit is contained in:
parent
ac5975cf8b
commit
d88dd59ab5
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue