From 88818e0470326b858717bb989769065efad21526 Mon Sep 17 00:00:00 2001
From: Sorunome <mail@sorunome.de>
Date: Tue, 25 Dec 2018 13:08:44 +0100
Subject: [PATCH] improve test

---
 test/test_matrixeventprocessor.ts | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/test/test_matrixeventprocessor.ts b/test/test_matrixeventprocessor.ts
index 6e17a3f..6280f81 100644
--- a/test/test_matrixeventprocessor.ts
+++ b/test/test_matrixeventprocessor.ts
@@ -690,9 +690,7 @@ This is the reply`,
                 type: "m.room.message",
             } as IMatrixEvent, mockChannel as any);
             let foundField = false;
-            // tslint:disable-next-line prefer-for-of
-            for (let i = 0; i < result!.fields!.length; i++) {
-                const f = result!.fields![i];
+            for (const f of result!.fields!) {
                 if (f.name === "ping") {
                     foundField = true;
                     expect(f.value).to.be.equal("<@1234>");
-- 
GitLab