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
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.js')
-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);
-});
+}