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:
authorXhmikosR <xhmikosr@gmail.com>2019-02-17 17:35:40 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-02-18 16:40:45 +0300
commitd4fef4d0282cc93e954a30efa3e3ea1c85d51407 (patch)
tree1e2841b0ae10f80d2c45379195d4ccd21e6a97c6
parent894af1f6cb8f72144124e6b9c678f9fe12f70576 (diff)
test.js: move to a function.
-rw-r--r--test/test.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/test.js b/test/test.js
index e3f5210..05ab003 100644
--- a/test/test.js
+++ b/test/test.js
@@ -13,7 +13,7 @@ const styles = [
'Postcss'
];
-styles.forEach(style => {
+function doTest(style) {
describe(style, () => {
tests.forEach(test => {
it(test.name, done => {
@@ -35,4 +35,8 @@ styles.forEach(style => {
});
});
});
+}
+
+styles.forEach(style => {
+ doTest(style);
});