You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +03:00
Linting
This commit is contained in:
@@ -1129,13 +1129,13 @@ describe("SlidingSync", () => {
|
|||||||
const customSubName1 = "sub1";
|
const customSubName1 = "sub1";
|
||||||
const customSub1 = {
|
const customSub1 = {
|
||||||
timeline_limit: 2,
|
timeline_limit: 2,
|
||||||
required_state: [["*","*"]],
|
required_state: [["*", "*"]],
|
||||||
};
|
};
|
||||||
|
|
||||||
const customSubName2 = "sub2";
|
const customSubName2 = "sub2";
|
||||||
const customSub2 = {
|
const customSub2 = {
|
||||||
timeline_limit: 3,
|
timeline_limit: 3,
|
||||||
required_state: [["*","*"]],
|
required_state: [["*", "*"]],
|
||||||
};
|
};
|
||||||
|
|
||||||
it("should be possible to use custom subscriptions on startup", async () => {
|
it("should be possible to use custom subscriptions on startup", async () => {
|
||||||
@@ -1260,7 +1260,6 @@ describe("SlidingSync", () => {
|
|||||||
await httpBackend!.flushAllExpected();
|
await httpBackend!.flushAllExpected();
|
||||||
slidingSync.stop();
|
slidingSync.stop();
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe("extensions", () => {
|
describe("extensions", () => {
|
||||||
|
|||||||
@@ -387,7 +387,7 @@ export class SlidingSync extends TypedEventEmitter<SlidingSyncEvent, SlidingSync
|
|||||||
* useCustomSubscription.
|
* useCustomSubscription.
|
||||||
* @param sub The subscription information.
|
* @param sub The subscription information.
|
||||||
*/
|
*/
|
||||||
public addCustomSubscription(name: string, sub :MSC3575RoomSubscription) {
|
public addCustomSubscription(name: string, sub: MSC3575RoomSubscription) {
|
||||||
this.customSubscriptions[name] = sub;
|
this.customSubscriptions[name] = sub;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user