mirror of
https://github.com/opensupports/opensupports.git
synced 2025-07-28 08:14:25 +02:00
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 = {
|
global.ReduxMock = {
|
||||||
connect: stub().returns(stub().returnsArg(0))
|
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…
x
Reference in New Issue
Block a user