You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-25 05:23:13 +03:00
appease the linter
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
|||||||
prevString,
|
prevString,
|
||||||
stringToBase,
|
stringToBase,
|
||||||
} from "../../src/utils";
|
} from "../../src/utils";
|
||||||
|
import { logger } from "../../src/logger";
|
||||||
|
|
||||||
describe("utils", function() {
|
describe("utils", function() {
|
||||||
describe("encodeParams", function() {
|
describe("encodeParams", function() {
|
||||||
@@ -344,7 +345,7 @@ describe("utils", function() {
|
|||||||
for (let i = 0; i < 100; i++) {
|
for (let i = 0; i < 100; i++) {
|
||||||
const next = nextString(midpoint);
|
const next = nextString(midpoint);
|
||||||
const prev = prevString(midpoint);
|
const prev = prevString(midpoint);
|
||||||
console.log({i, midpoint, next, prev}); // for test debugging
|
logger.log({ i, midpoint, next, prev }); // for test debugging
|
||||||
|
|
||||||
expect(lexicographicCompare(midpoint, next) < 0).toBe(true);
|
expect(lexicographicCompare(midpoint, next) < 0).toBe(true);
|
||||||
expect(lexicographicCompare(midpoint, prev) > 0).toBe(true);
|
expect(lexicographicCompare(midpoint, prev) > 0).toBe(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user