You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
whitespace, newlines
This commit is contained in:
@@ -105,8 +105,7 @@ describe("MatrixScheduler", function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
scheduler.queueEvent(eventA);
|
scheduler.queueEvent(eventA);
|
||||||
// as queueing doesn't start processing
|
// as queueing doesn't start processing synchronously anymore (see commit bbdb5ac)
|
||||||
// synchronously anymore (see commit bbdb5ac)
|
|
||||||
// wait just long enough before it does
|
// wait just long enough before it does
|
||||||
await Promise.resolve();
|
await Promise.resolve();
|
||||||
expect(procCount).toEqual(1);
|
expect(procCount).toEqual(1);
|
||||||
@@ -147,8 +146,7 @@ describe("MatrixScheduler", function() {
|
|||||||
|
|
||||||
const globalA = scheduler.queueEvent(eventA);
|
const globalA = scheduler.queueEvent(eventA);
|
||||||
scheduler.queueEvent(eventB);
|
scheduler.queueEvent(eventB);
|
||||||
// as queing doesn't start processing
|
// as queueing doesn't start processing synchronously anymore (see commit bbdb5ac)
|
||||||
// synchronously anymore (see commit bbdb5ac)
|
|
||||||
// wait just long enough before it does
|
// wait just long enough before it does
|
||||||
await Promise.resolve();
|
await Promise.resolve();
|
||||||
expect(procCount).toEqual(1);
|
expect(procCount).toEqual(1);
|
||||||
@@ -310,8 +308,7 @@ describe("MatrixScheduler", function() {
|
|||||||
expect(ev).toEqual(eventA);
|
expect(ev).toEqual(eventA);
|
||||||
return defer.promise;
|
return defer.promise;
|
||||||
});
|
});
|
||||||
// as queueing doesn't start processing
|
// as queueing doesn't start processing synchronously anymore (see commit bbdb5ac)
|
||||||
// synchronously anymore (see commit bbdb5ac)
|
|
||||||
// wait just long enough before it does
|
// wait just long enough before it does
|
||||||
Promise.resolve().then(() => {
|
Promise.resolve().then(() => {
|
||||||
expect(procCount).toEqual(1);
|
expect(procCount).toEqual(1);
|
||||||
|
|||||||
@@ -1742,6 +1742,7 @@ MatrixClient.prototype._sendCompleteEvent = function(roomId, eventObject, txnId,
|
|||||||
localEvent.updateAssociatedId(target.getId());
|
localEvent.updateAssociatedId(target.getId());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const type = localEvent.getType();
|
const type = localEvent.getType();
|
||||||
logger.log(`sendEvent of type ${type} in ${roomId} with txnId ${txnId}`);
|
logger.log(`sendEvent of type ${type} in ${roomId} with txnId ${txnId}`);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user