mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-06-07 04:22:02 +03:00
Appease linters.
This commit is contained in:
parent
fd8a754ef7
commit
8d8efd037b
@ -19,7 +19,7 @@ function HttpBackend() {
|
|||||||
HttpBackend.prototype = {
|
HttpBackend.prototype = {
|
||||||
/**
|
/**
|
||||||
* Respond to all of the requests (flush the queue).
|
* Respond to all of the requests (flush the queue).
|
||||||
* @return Promise resolved when there is nothing left to flush.
|
* @return {Promise} resolved when there is nothing left to flush.
|
||||||
*/
|
*/
|
||||||
flush: function() {
|
flush: function() {
|
||||||
var defer = q.defer();
|
var defer = q.defer();
|
||||||
@ -49,7 +49,7 @@ HttpBackend.prototype = {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Attempts to resolve requests/expected requests.
|
* Attempts to resolve requests/expected requests.
|
||||||
* @return true if something was resolved.
|
* @return {boolean} true if something was resolved.
|
||||||
*/
|
*/
|
||||||
_takeFromQueue: function() {
|
_takeFromQueue: function() {
|
||||||
var req = null;
|
var req = null;
|
||||||
@ -85,7 +85,7 @@ HttpBackend.prototype = {
|
|||||||
testResponse.err, testResponse.response, testResponse.body
|
testResponse.err, testResponse.response, testResponse.body
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
if (testResponse) { // flushed something
|
if (testResponse) { // flushed something
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Perform common actions before each test case, e.g. printing the test case
|
||||||
|
* name to stdout.
|
||||||
|
* @param {TestCase} testCase The test case that is about to be run.
|
||||||
|
*/
|
||||||
module.exports.beforeEach = function(testCase) {
|
module.exports.beforeEach = function(testCase) {
|
||||||
var desc = testCase.suite.description + " : " + testCase.description;
|
var desc = testCase.suite.description + " : " + testCase.description;
|
||||||
console.log(desc);
|
console.log(desc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user