1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00
Files
matrix-js-sdk/spec/unit/matrix-client.spec.js
Kegan Dougal c9df9c33a8 Linting
2015-11-04 11:53:10 +00:00

79 lines
1.7 KiB
JavaScript

"use strict";
var sdk = require("../..");
var MatrixClient = sdk.MatrixClient;
var utils = require("../test-utils");
describe("MatrixClient", function() {
var userId = "@alice:bar";
var client;
beforeEach(function() {
utils.beforeEach(this);
});
describe("getSyncState", function() {
it("should return null if the client isn't started", function() {
});
it("should return the same sync state as emitted sync events", function() {
});
});
describe("retryImmediately", function() {
it("should return false if there is no request waiting", function() {
});
it("should return true if there is a request waiting", function() {
});
it("should work on /initialSync", function() {
});
it("should work on /events", function() {
});
it("should work on /pushrules", function() {
});
});
describe("emitted sync events", function() {
it("should transition null -> PREPARED after /initialSync", function() {
});
it("should transition null -> ERROR after a failed /initialSync", function() {
});
it("should transition ERROR -> PREPARED after /initialSync if prev failed",
function() {
});
it("should transition PREPARED -> SYNCING after /initialSync", function() {
});
it("should transition SYNCING -> ERROR after a failed /events", function() {
});
it("should transition ERROR -> SYNCING after /events if prev failed", function() {
});
it("should transition ERROR -> ERROR if multiple /events fails", function() {
});
});
});