From 9c19b4e41d64ea2c703ffb35df10b8282b20f2d4 Mon Sep 17 00:00:00 2001 From: Bjorn Stromberg Date: Sun, 21 Jun 2020 10:45:59 +0900 Subject: [PATCH] Use for of instead of forEach --- test/test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test.ts b/test/test.ts index 98db7be..31bfa2a 100644 --- a/test/test.ts +++ b/test/test.ts @@ -1284,10 +1284,10 @@ test('is.domElement', t => { 'script' ]; - tagNames.forEach(tagName => { + for (const tagName of tagNames) { const domElement = createDomElement(tagName); t.is(is(domElement), 'HTMLElement'); - }); + } }); test('is.observable', t => {