You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-07-31 15:24:23 +03:00
Appease closure linter.
This commit is contained in:
@ -37,7 +37,7 @@ describe("MatrixClient", function() {
|
||||
httpBackend.flush();
|
||||
});
|
||||
|
||||
it("should pass the 'end' token from /initialSync to the from= param "+
|
||||
it("should pass the 'end' token from /initialSync to the from= param " +
|
||||
" of /events", function() {
|
||||
httpBackend.when("GET", "/initialSync").respond(200, initialSync);
|
||||
httpBackend.when("GET", "/events").check(function(req) {
|
||||
|
@ -1,9 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* This is a mock framework for an HTTP backend, heavily inspired by Angular.js
|
||||
* Construct a mock HTTP backend, heavily inspired by Angular.js.
|
||||
* @constructor
|
||||
*/
|
||||
|
||||
function HttpBackend() {
|
||||
this.requests = [];
|
||||
this.expectedRequests = [];
|
||||
@ -21,7 +21,7 @@ HttpBackend.prototype = {
|
||||
*/
|
||||
flush: function() {
|
||||
// if there's more real requests and more expected requests, flush 'em.
|
||||
while(this.requests.length > 0 && this.expectedRequests.length > 0) {
|
||||
while (this.requests.length > 0 && this.expectedRequests.length > 0) {
|
||||
var req = this.requests.shift();
|
||||
var i;
|
||||
|
||||
@ -57,7 +57,7 @@ HttpBackend.prototype = {
|
||||
verifyNoOutstandingRequests: function() {
|
||||
var firstOutstandingReq = this.requests[0] || {};
|
||||
expect(this.requests.length).toEqual(0,
|
||||
"Expected no more HTTP requests but received request to "+
|
||||
"Expected no more HTTP requests but received request to " +
|
||||
firstOutstandingReq.path
|
||||
);
|
||||
},
|
||||
@ -68,7 +68,7 @@ HttpBackend.prototype = {
|
||||
verifyNoOutstandingExpectation: function() {
|
||||
var firstOutstandingExpectation = this.expectedRequests[0] || {};
|
||||
expect(this.expectedRequests.length).toEqual(0,
|
||||
"Expected to see HTTP request for "+firstOutstandingExpectation.path
|
||||
"Expected to see HTTP request for " + firstOutstandingExpectation.path
|
||||
);
|
||||
},
|
||||
|
||||
@ -139,4 +139,7 @@ Request.prototype = {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* The HttpBackend class.
|
||||
*/
|
||||
module.exports = HttpBackend;
|
||||
|
Reference in New Issue
Block a user