Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/rfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2021-08-04 09:58:12 +0300
committerGitHub <noreply@github.com>2021-08-04 09:58:12 +0300
commit3fa5796687b872a7cb0e5cf86d743896e6abfbe2 (patch)
treed7dd82c9c96dbbbcf6e844fa9e3c43635df112f5 /test
parent31780a461fb1ad0c6e9a43b315eb47e8f801cfcb (diff)
Switch to using for...of (#414)
Diffstat (limited to 'test')
-rw-r--r--test/test.js8
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);
-});
+}