diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-08-04 09:58:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-04 09:58:12 +0300 |
commit | 3fa5796687b872a7cb0e5cf86d743896e6abfbe2 (patch) | |
tree | d7dd82c9c96dbbbcf6e844fa9e3c43635df112f5 /test | |
parent | 31780a461fb1ad0c6e9a43b315eb47e8f801cfcb (diff) |
Switch to using for...of (#414)
Diffstat (limited to 'test')
-rw-r--r-- | test/test.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test.js b/test/test.js index 419b3fb..2708ab8 100644 --- a/test/test.js +++ b/test/test.js @@ -17,7 +17,7 @@ const styles = [ function doTest(style) { describe(style, () => { - tests.forEach(test => { + for (const test of tests) { it(test.name, done => { const generated = result[style.toLowerCase()](test.id); const expected = result.expected(test.id); @@ -34,10 +34,10 @@ function doTest(style) { done(); } }); - }); + } }); } -styles.forEach(style => { +for (const style of styles) { doTest(style); -}); +} |