diff --git a/src/util.ts b/src/util.ts index 82fceb6992e8c4825d08ae5279ed11253f4341ae..6346ffe5c140b625fff72acb24f751b95f57c6ae 100644 --- a/src/util.ts +++ b/src/util.ts @@ -240,8 +240,8 @@ export class Util { public static GetReplyFromReplyBody(body: string) { const lines = body.split("\n"); - while(lines[0].startsWith("> ") || lines[0].trim().length === 0) { - lines.splice(0,1); + while (lines[0].startsWith("> ") || lines[0].trim().length === 0) { + lines.splice(0, 1); if (lines.length === 0) { return ""; } diff --git a/test/test_matrixeventprocessor.ts b/test/test_matrixeventprocessor.ts index 6505924ab5363a1ecbe2b5dc0a83a421b4bff7c2..e54d2accbb38dc8304cdef735191720171463757 100644 --- a/test/test_matrixeventprocessor.ts +++ b/test/test_matrixeventprocessor.ts @@ -108,11 +108,11 @@ This is the first reply`, const size = parseInt(name.substring(name.lastIndexOf("/") + 1), undefined); return Buffer.alloc(size); }, - }) + }); return new (Proxyquire("../src/matrixeventprocessor", { "./util": { - Util + Util, }, })).MatrixEventProcessor( new MatrixEventProcessorOpts(