You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-08-06 12:02:40 +03:00
Lint and tests
This commit is contained in:
@@ -18,6 +18,7 @@ var utils = require("./utils");
|
|||||||
var contentRepo = require("./content-repo");
|
var contentRepo = require("./content-repo");
|
||||||
var Filter = require("./filter");
|
var Filter = require("./filter");
|
||||||
var SyncApi = require("./sync");
|
var SyncApi = require("./sync");
|
||||||
|
var MatrixError = httpApi.MatrixError;
|
||||||
|
|
||||||
var SCROLLBACK_DELAY_MS = 3000;
|
var SCROLLBACK_DELAY_MS = 3000;
|
||||||
var CRYPTO_ENABLED = false;
|
var CRYPTO_ENABLED = false;
|
||||||
|
@@ -7,6 +7,7 @@ var utils = require("../test-utils");
|
|||||||
describe("MatrixClient", function() {
|
describe("MatrixClient", function() {
|
||||||
var userId = "@alice:bar";
|
var userId = "@alice:bar";
|
||||||
var identityServerUrl = "https://identity.server";
|
var identityServerUrl = "https://identity.server";
|
||||||
|
var identityServerDomain = "identity.server";
|
||||||
var client, store, scheduler;
|
var client, store, scheduler;
|
||||||
|
|
||||||
var PUSH_RULES_RESPONSE = {
|
var PUSH_RULES_RESPONSE = {
|
||||||
@@ -405,7 +406,7 @@ describe("MatrixClient", function() {
|
|||||||
path: "/rooms/!foo%3Abar/invite",
|
path: "/rooms/!foo%3Abar/invite",
|
||||||
data: {},
|
data: {},
|
||||||
expectBody: {
|
expectBody: {
|
||||||
id_server: identityServerUrl,
|
id_server: identityServerDomain,
|
||||||
medium: "email",
|
medium: "email",
|
||||||
address: "alice@gmail.com"
|
address: "alice@gmail.com"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user