Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

move the "only" specs out of test/misc/only/ and into test/only/

Christopher Hiller49e01d53ad06
diff --git a/Makefile b/Makefile
index 37e887f9..1724d30e 100644
--- a/Makefile
+++ b/Makefile
@@ -122,24 +122,24 @@ test-reporters:
test-only:
@printf "==> [Test :: Only]\n"
$(call test_node,only-tdd) --ui tdd \
- test/misc/only/tdd.spec
+ test/only/tdd.spec
$(call test_node,only-bdd) --ui bdd \
- test/misc/only/bdd.spec
+ test/only/bdd.spec
$(call test_node,only-bdd-require) --ui qunit \
- test/misc/only/bdd-require.spec
+ test/only/bdd-require.spec
test-global-only:
@printf "==> [Test :: Global Only]\n"
$(call test_node,global-only-tdd) --ui tdd \
- test/misc/only/global/tdd.spec
+ test/only/global/tdd.spec
$(call test_node,global-only-bdd) --ui bdd \
- test/misc/only/global/bdd.spec
+ test/only/global/bdd.spec
$(call test_node,global-only-qunit) --ui qunit \
- test/misc/only/global/qunit.spec
+ test/only/global/qunit.spec
test-mocha:
@printf "==> [Test :: Mocha]\n"
diff --git a/test/misc/only/bdd-require.spec.js b/test/only/bdd-require.spec.js
similarity index 86%
rename from test/misc/only/bdd-require.spec.js
rename to test/only/bdd-require.spec.js
index 1c90d7ac..9b85052c 100644
--- a/test/misc/only/bdd-require.spec.js
+++ b/test/only/bdd-require.spec.js
@@ -1,8 +1,6 @@
'use strict';
-/* jshint node: true */
-
-var mocha = require('../../../lib/mocha');
+var mocha = require('../../lib/mocha');
var beforeEach = mocha.beforeEach;
var it = mocha.it;
diff --git a/test/misc/only/bdd.spec.js b/test/only/bdd.spec.js
similarity index 100%
rename from test/misc/only/bdd.spec.js
rename to test/only/bdd.spec.js
diff --git a/test/misc/only/global/bdd.spec.js b/test/only/global/bdd.spec.js
similarity index 100%
rename from test/misc/only/global/bdd.spec.js
rename to test/only/global/bdd.spec.js
diff --git a/test/misc/only/global/qunit.spec.js b/test/only/global/qunit.spec.js
similarity index 100%
rename from test/misc/only/global/qunit.spec.js
rename to test/only/global/qunit.spec.js
diff --git a/test/misc/only/global/tdd.spec.js b/test/only/global/tdd.spec.js
similarity index 100%
rename from test/misc/only/global/tdd.spec.js
rename to test/only/global/tdd.spec.js
diff --git a/test/misc/only/qunit.spec.js b/test/only/qunit.spec.js
similarity index 100%
rename from test/misc/only/qunit.spec.js
rename to test/only/qunit.spec.js
diff --git a/test/misc/only/tdd.spec.js b/test/only/tdd.spec.js
similarity index 100%
rename from test/misc/only/tdd.spec.js
rename to test/only/tdd.spec.js