Skip to content

armgit / mocha

Public Imported from GitHub
0

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

fix test files not using .spec suffix fix test fixtures not using .fixture suffix

Christian526dd84b4de9
diff --git a/Makefile b/Makefile
index 4cd96922..b05ce657 100644
--- a/Makefile
+++ b/Makefile
@@ -81,31 +81,31 @@ test-requires:
--require test/acceptance/require/b.coffee \
--require test/acceptance/require/c.js \
--require test/acceptance/require/d.coffee \
- test/acceptance/require/require.js
+ test/acceptance/require/require.spec.js
test-bdd:
@printf "==> [Test :: BDD]\n"
$(MOCHA) --reporter $(REPORTER) \
--ui bdd \
- test/acceptance/interfaces/bdd
+ test/acceptance/interfaces/bdd.spec
test-tdd:
@printf "==> [Test :: TDD]\n"
$(MOCHA) --reporter $(REPORTER) \
--ui tdd \
- test/acceptance/interfaces/tdd
+ test/acceptance/interfaces/tdd.spec
test-qunit:
@printf "==> [Test :: QUnit]\n"
$(MOCHA) --reporter $(REPORTER) \
--ui qunit \
- test/acceptance/interfaces/qunit
+ test/acceptance/interfaces/qunit.spec
test-exports:
@printf "==> [Test :: Exports]\n"
$(MOCHA) --reporter $(REPORTER) \
--ui exports \
- test/acceptance/interfaces/exports
+ test/acceptance/interfaces/exports.spec
test-glob:
@printf "==> [Test :: Glob]\n"
@@ -120,29 +120,29 @@ test-only:
@printf "==> [Test :: Only]\n"
$(MOCHA) --reporter $(REPORTER) \
--ui tdd \
- test/acceptance/misc/only/tdd
+ test/acceptance/misc/only/tdd.spec
$(MOCHA) --reporter $(REPORTER) \
--ui bdd \
- test/acceptance/misc/only/bdd
+ test/acceptance/misc/only/bdd.spec
$(MOCHA) --reporter $(REPORTER) \
--ui qunit \
- test/acceptance/misc/only/bdd-require
+ test/acceptance/misc/only/bdd-require.spec
test-global-only:
@printf "==> [Test :: Global Only]\n"
$(MOCHA) --reporter $(REPORTER) \
--ui tdd \
- test/acceptance/misc/only/global/tdd
+ test/acceptance/misc/only/global/tdd.spec
$(MOCHA) --reporter $(REPORTER) \
--ui bdd \
- test/acceptance/misc/only/global/bdd
+ test/acceptance/misc/only/global/bdd.spec
$(MOCHA) --reporter $(REPORTER) \
--ui qunit \
- test/acceptance/misc/only/global/qunit
+ test/acceptance/misc/only/global/qunit.spec
test-mocha:
@printf "==> [Test :: Mocha]\n"
@@ -152,19 +152,19 @@ test-mocha:
non-tty:
@printf "==> [Test :: Non-TTY]\n"
$(MOCHA) --reporter dot \
- test/acceptance/interfaces/bdd 2>&1 > /tmp/dot.out
+ test/acceptance/interfaces/bdd.spec 2>&1 > /tmp/dot.out
@echo dot:
@cat /tmp/dot.out
$(MOCHA) --reporter list \
- test/acceptance/interfaces/bdd 2>&1 > /tmp/list.out
+ test/acceptance/interfaces/bdd.spec 2>&1 > /tmp/list.out
@echo list:
@cat /tmp/list.out
$(MOCHA) --reporter spec \
- test/acceptance/interfaces/bdd 2>&1 > /tmp/spec.out
+ test/acceptance/interfaces/bdd.spec 2>&1 > /tmp/spec.out
@echo spec:
@cat /tmp/spec.out
diff --git a/karma.conf.js b/karma.conf.js
index 76e8ae63..125aaf4f 100644
--- a/karma.conf.js
+++ b/karma.conf.js
@@ -18,9 +18,9 @@ module.exports = function(config) {
'test/acceptance/*.js'
],
exclude: [
- 'test/acceptance/http.js',
- 'test/acceptance/fs.js',
- 'test/acceptance/lookup-files.js',
+ 'test/acceptance/http.spec.js',
+ 'test/acceptance/fs.spec.js',
+ 'test/acceptance/lookup-files.spec.js',
'test/acceptance/require/**/*.js',
'test/acceptance/misc/**/*.js'
],
@@ -109,7 +109,7 @@ module.exports = function(config) {
}
cfg.files = [
'test/browser-fixtures/' + ui + '.js',
- 'test/acceptance/interfaces/' + ui + '.js'
+ 'test/acceptance/interfaces/' + ui + '.spec.js'
];
} else if (cfg.sauceLabs) {
cfg.sauceLabs.testName = 'Unit Tests';
diff --git a/scripts/travis-before-install.sh b/scripts/travis-before-install.sh
index c725d389..9913070a 100755
--- a/scripts/travis-before-install.sh
+++ b/scripts/travis-before-install.sh
@@ -2,4 +2,4 @@
npm install --production
# this avoids our mocha.opts (and thus devDependencies) in a roundabout way
-./bin/mocha --opts /dev/null --reporter spec test/sanity/sanity.js
+./bin/mocha --opts /dev/null --reporter spec test/sanity/sanity.spec.js
diff --git a/test/acceptance/context.js b/test/acceptance/context.spec.js
similarity index 100%
rename from test/acceptance/context.js
rename to test/acceptance/context.spec.js
diff --git a/test/acceptance/duration.js b/test/acceptance/duration.spec.js
similarity index 100%
rename from test/acceptance/duration.js
rename to test/acceptance/duration.spec.js
diff --git a/test/acceptance/fs.js b/test/acceptance/fs.spec.js
similarity index 100%
rename from test/acceptance/fs.js
rename to test/acceptance/fs.spec.js
diff --git a/test/acceptance/glob/glob.js b/test/acceptance/glob/glob.spec.js
similarity index 100%
rename from test/acceptance/glob/glob.js
rename to test/acceptance/glob/glob.spec.js
diff --git a/test/acceptance/globals.js b/test/acceptance/globals.spec.js
similarity index 100%
rename from test/acceptance/globals.js
rename to test/acceptance/globals.spec.js
diff --git a/test/acceptance/http.js b/test/acceptance/http.spec.js
similarity index 100%
rename from test/acceptance/http.js
rename to test/acceptance/http.spec.js
diff --git a/test/acceptance/interfaces/bdd.js b/test/acceptance/interfaces/bdd.spec.js
similarity index 100%
rename from test/acceptance/interfaces/bdd.js
rename to test/acceptance/interfaces/bdd.spec.js
diff --git a/test/acceptance/interfaces/exports.js b/test/acceptance/interfaces/exports.spec.js
similarity index 100%
rename from test/acceptance/interfaces/exports.js
rename to test/acceptance/interfaces/exports.spec.js
diff --git a/test/acceptance/interfaces/qunit.js b/test/acceptance/interfaces/qunit.spec.js
similarity index 100%
rename from test/acceptance/interfaces/qunit.js
rename to test/acceptance/interfaces/qunit.spec.js
diff --git a/test/acceptance/interfaces/tdd.js b/test/acceptance/interfaces/tdd.spec.js
similarity index 100%
rename from test/acceptance/interfaces/tdd.js
rename to test/acceptance/interfaces/tdd.spec.js
diff --git a/test/acceptance/lookup-files.js b/test/acceptance/lookup-files.spec.js
similarity index 100%
rename from test/acceptance/lookup-files.js
rename to test/acceptance/lookup-files.spec.js
diff --git a/test/acceptance/misc/exit.js b/test/acceptance/misc/exit.spec.js
similarity index 100%
rename from test/acceptance/misc/exit.js
rename to test/acceptance/misc/exit.spec.js
diff --git a/test/acceptance/misc/many.js b/test/acceptance/misc/many.spec.js
similarity index 100%
rename from test/acceptance/misc/many.js
rename to test/acceptance/misc/many.spec.js
diff --git a/test/acceptance/misc/nontty.js b/test/acceptance/misc/nontty.spec.js
similarity index 100%
rename from test/acceptance/misc/nontty.js
rename to test/acceptance/misc/nontty.spec.js
diff --git a/test/acceptance/misc/only/bdd-require.js b/test/acceptance/misc/only/bdd-require.spec.js
similarity index 100%
rename from test/acceptance/misc/only/bdd-require.js
rename to test/acceptance/misc/only/bdd-require.spec.js
diff --git a/test/acceptance/misc/only/bdd.js b/test/acceptance/misc/only/bdd.spec.js
similarity index 100%
rename from test/acceptance/misc/only/bdd.js
rename to test/acceptance/misc/only/bdd.spec.js
diff --git a/test/acceptance/misc/only/global/bdd.js b/test/acceptance/misc/only/global/bdd.spec.js
similarity index 100%
rename from test/acceptance/misc/only/global/bdd.js
rename to test/acceptance/misc/only/global/bdd.spec.js
diff --git a/test/acceptance/misc/only/global/qunit.js b/test/acceptance/misc/only/global/qunit.spec.js
similarity index 100%
rename from test/acceptance/misc/only/global/qunit.js
rename to test/acceptance/misc/only/global/qunit.spec.js
diff --git a/test/acceptance/misc/only/global/tdd.js b/test/acceptance/misc/only/global/tdd.spec.js
similarity index 100%
rename from test/acceptance/misc/only/global/tdd.js
rename to test/acceptance/misc/only/global/tdd.spec.js
diff --git a/test/acceptance/misc/only/qunit.js b/test/acceptance/misc/only/qunit.spec.js
similarity index 100%
rename from test/acceptance/misc/only/qunit.js
rename to test/acceptance/misc/only/qunit.spec.js
diff --git a/test/acceptance/misc/only/tdd.js b/test/acceptance/misc/only/tdd.spec.js
similarity index 100%
rename from test/acceptance/misc/only/tdd.js
rename to test/acceptance/misc/only/tdd.spec.js
diff --git a/test/acceptance/overspecified-async.js b/test/acceptance/overspecified-async.spec.js
similarity index 100%
rename from test/acceptance/overspecified-async.js
rename to test/acceptance/overspecified-async.spec.js
diff --git a/test/acceptance/require/require.js b/test/acceptance/require/require.spec.js
similarity index 100%
rename from test/acceptance/require/require.js
rename to test/acceptance/require/require.spec.js
diff --git a/test/acceptance/required-tokens.js b/test/acceptance/required-tokens.spec.js
similarity index 100%
rename from test/acceptance/required-tokens.js
rename to test/acceptance/required-tokens.spec.js
diff --git a/test/acceptance/root.js b/test/acceptance/root.spec.js
similarity index 100%
rename from test/acceptance/root.js
rename to test/acceptance/root.spec.js
diff --git a/test/acceptance/throw.js b/test/acceptance/throw.spec.js
similarity index 100%
rename from test/acceptance/throw.js
rename to test/acceptance/throw.spec.js
diff --git a/test/acceptance/timeout.js b/test/acceptance/timeout.spec.js
similarity index 100%
rename from test/acceptance/timeout.js
rename to test/acceptance/timeout.spec.js
diff --git a/test/acceptance/utils.js b/test/acceptance/utils.spec.js
similarity index 100%
rename from test/acceptance/utils.js
rename to test/acceptance/utils.spec.js
diff --git a/test/browser/array.js b/test/browser/array.spec.js
similarity index 100%
rename from test/browser/array.js
rename to test/browser/array.spec.js
diff --git a/test/browser/grep.js b/test/browser/grep.spec.js
similarity index 100%
rename from test/browser/grep.js
rename to test/browser/grep.spec.js
diff --git a/test/browser/large.js b/test/browser/large.spec.js
similarity index 100%
rename from test/browser/large.js
rename to test/browser/large.spec.js
diff --git a/test/browser/multiple-done.js b/test/browser/multiple-done.spec.js
similarity index 100%
rename from test/browser/multiple-done.js
rename to test/browser/multiple-done.spec.js
diff --git a/test/browser/opts.js b/test/browser/opts.spec.js
similarity index 100%
rename from test/browser/opts.js
rename to test/browser/opts.spec.js
diff --git a/test/browser/stack-trace.js b/test/browser/stack-trace.spec.js
similarity index 100%
rename from test/browser/stack-trace.js
rename to test/browser/stack-trace.spec.js
diff --git a/test/browser/ui.js b/test/browser/ui.spec.js
similarity index 100%
rename from test/browser/ui.js
rename to test/browser/ui.spec.js
diff --git a/test/color.js b/test/color.spec.js
similarity index 100%
rename from test/color.js
rename to test/color.spec.js
diff --git a/test/grep.js b/test/grep.spec.js
similarity index 100%
rename from test/grep.js
rename to test/grep.spec.js
diff --git a/test/hook.async.js b/test/hook-async.spec.js
similarity index 100%
rename from test/hook.async.js
rename to test/hook-async.spec.js
diff --git a/test/hook.sync.nested.js b/test/hook-sync-nested.spec.js
similarity index 100%
rename from test/hook.sync.nested.js
rename to test/hook-sync-nested.spec.js
diff --git a/test/hook.sync.js b/test/hook-sync.spec.js
similarity index 100%
rename from test/hook.sync.js
rename to test/hook-sync.spec.js
diff --git a/test/hook.timeout.js b/test/hook-timeout.spec.js
similarity index 100%
rename from test/hook.timeout.js
rename to test/hook-timeout.spec.js
diff --git a/test/http.meta.2.js b/test/http-meta-2.spec.js
similarity index 100%
rename from test/http.meta.2.js
rename to test/http-meta-2.spec.js
diff --git a/test/http.meta.js b/test/http-meta.spec.js
similarity index 100%
rename from test/http.meta.js
rename to test/http-meta.spec.js
diff --git a/test/integration/diffs.js b/test/integration/diffs.spec.js
similarity index 95%
rename from test/integration/diffs.js
rename to test/integration/diffs.spec.js
index 111b6f20..b779b84a 100644
--- a/test/integration/diffs.js
+++ b/test/integration/diffs.spec.js
@@ -17,7 +17,7 @@ describe('diffs', function() {
var diffs, expected;
before(function(done) {
- run('diffs/diffs.js', ['-C'], function(err, res) {
+ run('diffs/diffs.fixture.js', ['-C'], function(err, res) {
expected = getExpectedOutput();
diffs = getDiffs(res.output);
done(err);
diff --git a/test/integration/fixtures/cascade.js b/test/integration/fixtures/cascade.fixture.js
similarity index 100%
rename from test/integration/fixtures/cascade.js
rename to test/integration/fixtures/cascade.fixture.js
diff --git a/test/integration/fixtures/diffs/diffs.js b/test/integration/fixtures/diffs/diffs.fixture.js
similarity index 100%
rename from test/integration/fixtures/diffs/diffs.js
rename to test/integration/fixtures/diffs/diffs.fixture.js
diff --git a/test/integration/fixtures/hooks/after.hook.async.error.js b/test/integration/fixtures/hooks/after-hook-async-error.fixture.js
similarity index 100%
rename from test/integration/fixtures/hooks/after.hook.async.error.js
rename to test/integration/fixtures/hooks/after-hook-async-error.fixture.js
diff --git a/test/integration/fixtures/hooks/after.hook.error.js b/test/integration/fixtures/hooks/after-hook-error.fixture.js
similarity index 100%
rename from test/integration/fixtures/hooks/after.hook.error.js
rename to test/integration/fixtures/hooks/after-hook-error.fixture.js
diff --git a/test/integration/fixtures/hooks/afterEach.hook.async.error.js b/test/integration/fixtures/hooks/afterEach-hook-async-error.fixture.js
similarity index 100%
rename from test/integration/fixtures/hooks/afterEach.hook.async.error.js
rename to test/integration/fixtures/hooks/afterEach-hook-async-error.fixture.js
diff --git a/test/integration/fixtures/hooks/afterEach.hook.error.js b/test/integration/fixtures/hooks/afterEach-hook-error.fixture.js
similarity index 100%
rename from test/integration/fixtures/hooks/afterEach.hook.error.js
rename to test/integration/fixtures/hooks/afterEach-hook-error.fixture.js
diff --git a/test/integration/fixtures/hooks/before.hook.async.error.tip.js b/test/integration/fixtures/hooks/before-hook-async-error-tip.fixture.js
similarity index 100%
rename from test/integration/fixtures/hooks/before.hook.async.error.tip.js
rename to test/integration/fixtures/hooks/before-hook-async-error-tip.fixture.js
diff --git a/test/integration/fixtures/hooks/before.hook.async.error.js b/test/integration/fixtures/hooks/before-hook-async-error.fixture.js
similarity index 100%
rename from test/integration/fixtures/hooks/before.hook.async.error.js
rename to test/integration/fixtures/hooks/before-hook-async-error.fixture.js
diff --git a/test/integration/fixtures/hooks/before.hook.error.tip.js b/test/integration/fixtures/hooks/before-hook-error-tip.fixture.js
similarity index 100%
rename from test/integration/fixtures/hooks/before.hook.error.tip.js
rename to test/integration/fixtures/hooks/before-hook-error-tip.fixture.js
diff --git a/test/integration/fixtures/hooks/before.hook.error.js b/test/integration/fixtures/hooks/before-hook-error.fixture.js
similarity index 100%
rename from test/integration/fixtures/hooks/before.hook.error.js
rename to test/integration/fixtures/hooks/before-hook-error.fixture.js
diff --git a/test/integration/fixtures/hooks/beforeEach.hook.async.error.js b/test/integration/fixtures/hooks/beforeEach-hook-async-error.fixture.js
similarity index 100%
rename from test/integration/fixtures/hooks/beforeEach.hook.async.error.js
rename to test/integration/fixtures/hooks/beforeEach-hook-async-error.fixture.js
diff --git a/test/integration/fixtures/hooks/beforeEach.hook.error.js b/test/integration/fixtures/hooks/beforeEach-hook-error.fixture.js
similarity index 100%
rename from test/integration/fixtures/hooks/beforeEach.hook.error.js
rename to test/integration/fixtures/hooks/beforeEach-hook-error.fixture.js
diff --git a/test/integration/fixtures/hooks/multiple.hook.async.error.js b/test/integration/fixtures/hooks/multiple-hook-async-error.fixture.js
similarity index 100%
rename from test/integration/fixtures/hooks/multiple.hook.async.error.js
rename to test/integration/fixtures/hooks/multiple-hook-async-error.fixture.js
diff --git a/test/integration/fixtures/hooks/multiple.hook.error.js b/test/integration/fixtures/hooks/multiple-hook-error.fixture.js
similarity index 100%
rename from test/integration/fixtures/hooks/multiple.hook.error.js
rename to test/integration/fixtures/hooks/multiple-hook-error.fixture.js
diff --git a/test/integration/fixtures/multiple.done.before.js b/test/integration/fixtures/multiple-done-before.fixture.js
similarity index 100%
rename from test/integration/fixtures/multiple.done.before.js
rename to test/integration/fixtures/multiple-done-before.fixture.js
diff --git a/test/integration/fixtures/multiple.done.beforeEach.js b/test/integration/fixtures/multiple-done-beforeEach.fixture.js
similarity index 100%
rename from test/integration/fixtures/multiple.done.beforeEach.js
rename to test/integration/fixtures/multiple-done-beforeEach.fixture.js
diff --git a/test/integration/fixtures/multiple.done.specs.js b/test/integration/fixtures/multiple-done-specs.fixture.js
similarity index 100%
rename from test/integration/fixtures/multiple.done.specs.js
rename to test/integration/fixtures/multiple-done-specs.fixture.js
diff --git a/test/integration/fixtures/multiple.done.js b/test/integration/fixtures/multiple-done.fixture.js
similarity index 100%
rename from test/integration/fixtures/multiple.done.js
rename to test/integration/fixtures/multiple-done.fixture.js
diff --git a/test/integration/fixtures/options/async-only.async.js b/test/integration/fixtures/options/async-only-async.fixture.js
similarity index 100%
rename from test/integration/fixtures/options/async-only.async.js
rename to test/integration/fixtures/options/async-only-async.fixture.js
diff --git a/test/integration/fixtures/options/async-only.sync.js b/test/integration/fixtures/options/async-only-sync.fixture.js
similarity index 100%
rename from test/integration/fixtures/options/async-only.sync.js
rename to test/integration/fixtures/options/async-only-sync.fixture.js
diff --git a/test/integration/fixtures/options/bail.js b/test/integration/fixtures/options/bail.fixture.js
similarity index 100%
rename from test/integration/fixtures/options/bail.js
rename to test/integration/fixtures/options/bail.fixture.js
diff --git a/test/integration/fixtures/options/delay-fail.js b/test/integration/fixtures/options/delay-fail.fixture.js
similarity index 100%
rename from test/integration/fixtures/options/delay-fail.js
rename to test/integration/fixtures/options/delay-fail.fixture.js
diff --git a/test/integration/fixtures/options/delay.js b/test/integration/fixtures/options/delay.fixture.js
similarity index 100%
rename from test/integration/fixtures/options/delay.js
rename to test/integration/fixtures/options/delay.fixture.js
diff --git a/test/integration/fixtures/options/grep.js b/test/integration/fixtures/options/grep.fixture.js
similarity index 100%
rename from test/integration/fixtures/options/grep.js
rename to test/integration/fixtures/options/grep.fixture.js
diff --git a/test/integration/fixtures/options/only/bdd.js b/test/integration/fixtures/options/only/bdd.fixture.js
similarity index 100%
rename from test/integration/fixtures/options/only/bdd.js
rename to test/integration/fixtures/options/only/bdd.fixture.js
diff --git a/test/integration/fixtures/options/only/qunit.js b/test/integration/fixtures/options/only/qunit.fixture.js
similarity index 100%
rename from test/integration/fixtures/options/only/qunit.js
rename to test/integration/fixtures/options/only/qunit.fixture.js
diff --git a/test/integration/fixtures/options/only/tdd.js b/test/integration/fixtures/options/only/tdd.fixture.js
similarity index 100%
rename from test/integration/fixtures/options/only/tdd.js
rename to test/integration/fixtures/options/only/tdd.fixture.js
diff --git a/test/integration/fixtures/options/retries.js b/test/integration/fixtures/options/retries.fixture.js
similarity index 100%
rename from test/integration/fixtures/options/retries.js
rename to test/integration/fixtures/options/retries.fixture.js
diff --git a/test/integration/fixtures/options/sort.alpha.js b/test/integration/fixtures/options/sort-alpha.fixture.js
similarity index 100%
rename from test/integration/fixtures/options/sort.alpha.js
rename to test/integration/fixtures/options/sort-alpha.fixture.js
diff --git a/test/integration/fixtures/options/sort.beta.js b/test/integration/fixtures/options/sort-beta.fixture.js
similarity index 100%
rename from test/integration/fixtures/options/sort.beta.js
rename to test/integration/fixtures/options/sort-beta.fixture.js
diff --git a/test/integration/fixtures/passing.js b/test/integration/fixtures/passing.fixture.js
similarity index 100%
rename from test/integration/fixtures/passing.js
rename to test/integration/fixtures/passing.fixture.js
diff --git a/test/integration/fixtures/pending/skip.async.before.js b/test/integration/fixtures/pending/skip-async-before.fixture.js
similarity index 100%
rename from test/integration/fixtures/pending/skip.async.before.js
rename to test/integration/fixtures/pending/skip-async-before.fixture.js
diff --git a/test/integration/fixtures/pending/skip.async.beforeEach.js b/test/integration/fixtures/pending/skip-async-beforeEach.fixture.js
similarity index 100%
rename from test/integration/fixtures/pending/skip.async.beforeEach.js
rename to test/integration/fixtures/pending/skip-async-beforeEach.fixture.js
diff --git a/test/integration/fixtures/pending/skip.async.spec.js b/test/integration/fixtures/pending/skip-async-spec.fixture.js
similarity index 100%
rename from test/integration/fixtures/pending/skip.async.spec.js
rename to test/integration/fixtures/pending/skip-async-spec.fixture.js
diff --git a/test/integration/fixtures/pending/skip.sync.before.js b/test/integration/fixtures/pending/skip-sync-before.fixture.js
similarity index 100%
rename from test/integration/fixtures/pending/skip.sync.before.js
rename to test/integration/fixtures/pending/skip-sync-before.fixture.js
diff --git a/test/integration/fixtures/pending/skip.sync.beforeEach.js b/test/integration/fixtures/pending/skip-sync-beforeEach.fixture.js
similarity index 100%
rename from test/integration/fixtures/pending/skip.sync.beforeEach.js
rename to test/integration/fixtures/pending/skip-sync-beforeEach.fixture.js
diff --git a/test/integration/fixtures/pending/skip.sync.spec.js b/test/integration/fixtures/pending/skip-sync-spec.fixture.js
similarity index 100%
rename from test/integration/fixtures/pending/skip.sync.spec.js
rename to test/integration/fixtures/pending/skip-sync-spec.fixture.js
diff --git a/test/integration/fixtures/pending/spec.js b/test/integration/fixtures/pending/spec.fixture.js
similarity index 100%
rename from test/integration/fixtures/pending/spec.js
rename to test/integration/fixtures/pending/spec.fixture.js
diff --git a/test/integration/fixtures/regression/1794/issue-1794.js b/test/integration/fixtures/regression/1794/issue-1794.fixture.js
similarity index 100%
rename from test/integration/fixtures/regression/1794/issue-1794.js
rename to test/integration/fixtures/regression/1794/issue-1794.fixture.js
diff --git a/test/integration/fixtures/regression/issue-1327.js b/test/integration/fixtures/regression/issue-1327.fixture.js
similarity index 100%
rename from test/integration/fixtures/regression/issue-1327.js
rename to test/integration/fixtures/regression/issue-1327.fixture.js
diff --git a/test/integration/fixtures/regression/issue-1991.js b/test/integration/fixtures/regression/issue-1991.fixture.js
similarity index 100%
rename from test/integration/fixtures/regression/issue-1991.js
rename to test/integration/fixtures/regression/issue-1991.fixture.js
diff --git a/test/integration/fixtures/regression/issue-2406.js b/test/integration/fixtures/regression/issue-2406.fixture.js
similarity index 100%
rename from test/integration/fixtures/regression/issue-2406.js
rename to test/integration/fixtures/regression/issue-2406.fixture.js
diff --git a/test/integration/fixtures/regression/issue-2417.js b/test/integration/fixtures/regression/issue-2417.fixture.js
similarity index 100%
rename from test/integration/fixtures/regression/issue-2417.js
rename to test/integration/fixtures/regression/issue-2417.fixture.js
diff --git a/test/integration/fixtures/retries/async.js b/test/integration/fixtures/retries/async.fixture.js
similarity index 100%
rename from test/integration/fixtures/retries/async.js
rename to test/integration/fixtures/retries/async.fixture.js
diff --git a/test/integration/fixtures/retries/early-pass.js b/test/integration/fixtures/retries/early-pass.fixture.js
similarity index 100%
rename from test/integration/fixtures/retries/early-pass.js
rename to test/integration/fixtures/retries/early-pass.fixture.js
diff --git a/test/integration/fixtures/retries/hooks.js b/test/integration/fixtures/retries/hooks.fixture.js
similarity index 100%
rename from test/integration/fixtures/retries/hooks.js
rename to test/integration/fixtures/retries/hooks.fixture.js
diff --git a/test/integration/fixtures/retries/nested.js b/test/integration/fixtures/retries/nested.fixture.js
similarity index 100%
rename from test/integration/fixtures/retries/nested.js
rename to test/integration/fixtures/retries/nested.fixture.js
diff --git a/test/integration/fixtures/timeout.js b/test/integration/fixtures/timeout.fixture.js
similarity index 100%
rename from test/integration/fixtures/timeout.js
rename to test/integration/fixtures/timeout.fixture.js
diff --git a/test/integration/fixtures/uncaught.hook.js b/test/integration/fixtures/uncaught-hook.fixture.js
similarity index 100%
rename from test/integration/fixtures/uncaught.hook.js
rename to test/integration/fixtures/uncaught-hook.fixture.js
diff --git a/test/integration/fixtures/uncaught.js b/test/integration/fixtures/uncaught.fixture.js
similarity index 100%
rename from test/integration/fixtures/uncaught.js
rename to test/integration/fixtures/uncaught.fixture.js
diff --git a/test/integration/hook.err.js b/test/integration/hook-err.spec.js
similarity index 86%
rename from test/integration/hook.err.js
rename to test/integration/hook-err.spec.js
index f3a16c15..be18721f 100644
--- a/test/integration/hook.err.js
+++ b/test/integration/hook-err.spec.js
@@ -7,7 +7,7 @@ describe('hook error handling', function() {
var lines;
describe('before hook error', function() {
- before(run('hooks/before.hook.error.js'));
+ before(run('hooks/before-hook-error.fixture.js'));
it('should verify results', function() {
assert.deepEqual(
lines,
@@ -17,7 +17,7 @@ describe('hook error handling', function() {
});
describe('before hook error tip', function() {
- before(run('hooks/before.hook.error.tip.js', onlyErrorTitle));
+ before(run('hooks/before-hook-error-tip.fixture.js', onlyErrorTitle));
it('should verify results', function() {
assert.deepEqual(
lines,
@@ -27,7 +27,7 @@ describe('hook error handling', function() {
});
describe('before each hook error', function() {
- before(run('hooks/beforeEach.hook.error.js'));
+ before(run('hooks/beforeEach-hook-error.fixture.js'));
it('should verify results', function() {
assert.deepEqual(
lines,
@@ -37,7 +37,7 @@ describe('hook error handling', function() {
});
describe('after hook error', function() {
- before(run('hooks/after.hook.error.js'));
+ before(run('hooks/after-hook-error.fixture.js'));
it('should verify results', function() {
assert.deepEqual(
lines,
@@ -47,7 +47,7 @@ describe('hook error handling', function() {
});
describe('after each hook error', function() {
- before(run('hooks/afterEach.hook.error.js'));
+ before(run('hooks/afterEach-hook-error.fixture.js'));
it('should verify results', function() {
assert.deepEqual(
lines,
@@ -57,7 +57,7 @@ describe('hook error handling', function() {
});
describe('multiple hook errors', function() {
- before(run('hooks/multiple.hook.error.js'));
+ before(run('hooks/multiple-hook-error.fixture.js'));
it('should verify results', function() {
assert.deepEqual(
lines,
@@ -95,7 +95,7 @@ describe('hook error handling', function() {
});
describe('async - before hook error', function() {
- before(run('hooks/before.hook.async.error.js'));
+ before(run('hooks/before-hook-async-error.fixture.js'));
it('should verify results', function() {
assert.deepEqual(
lines,
@@ -105,7 +105,7 @@ describe('hook error handling', function() {
});
describe('async - before hook error tip', function() {
- before(run('hooks/before.hook.async.error.tip.js', onlyErrorTitle));
+ before(run('hooks/before-hook-async-error-tip.fixture.js', onlyErrorTitle));
it('should verify results', function() {
assert.deepEqual(
lines,
@@ -115,7 +115,7 @@ describe('hook error handling', function() {
});
describe('async - before each hook error', function() {
- before(run('hooks/beforeEach.hook.async.error.js'));
+ before(run('hooks/beforeEach-hook-async-error.fixture.js'));
it('should verify results', function() {
assert.deepEqual(
lines,
@@ -125,7 +125,7 @@ describe('hook error handling', function() {
});
describe('async - after hook error', function() {
- before(run('hooks/after.hook.async.error.js'));
+ before(run('hooks/after-hook-async-error.fixture.js'));
it('should verify results', function() {
assert.deepEqual(
lines,
@@ -135,7 +135,7 @@ describe('hook error handling', function() {
});
describe('async - after each hook error', function() {
- before(run('hooks/afterEach.hook.async.error.js'));
+ before(run('hooks/afterEach-hook-async-error.fixture.js'));
it('should verify results', function() {
assert.deepEqual(
lines,
@@ -145,7 +145,7 @@ describe('hook error handling', function() {
});
describe('async - multiple hook errors', function() {
- before(run('hooks/multiple.hook.async.error.js'));
+ before(run('hooks/multiple-hook-async-error.fixture.js'));
it('should verify results', function() {
assert.deepEqual(
lines,
diff --git a/test/integration/hooks.js b/test/integration/hooks.spec.js
similarity index 94%
rename from test/integration/hooks.js
rename to test/integration/hooks.spec.js
index acd829f7..7633cb56 100644
--- a/test/integration/hooks.js
+++ b/test/integration/hooks.spec.js
@@ -5,7 +5,7 @@ var args = [];
describe('hooks', function() {
it('are ran in correct order', function(done) {
- run('cascade.js', args, function(err, res) {
+ run('cascade.fixture.js', args, function(err, res) {
var lines, expected;
assert(!err);
diff --git a/test/integration/multiple.done.js b/test/integration/multiple-done.spec.js
similarity index 89%
rename from test/integration/multiple.done.js
rename to test/integration/multiple-done.spec.js
index 0159e90e..47e82dbe 100644
--- a/test/integration/multiple.done.js
+++ b/test/integration/multiple-done.spec.js
@@ -6,7 +6,7 @@ describe('multiple calls to done()', function() {
var res;
describe('from a spec', function() {
before(function(done) {
- run('multiple.done.js', args, function(err, result) {
+ run('multiple-done.fixture.js', args, function(err, result) {
res = result;
done(err);
});
@@ -27,7 +27,7 @@ describe('multiple calls to done()', function() {
describe('with multiple specs', function() {
before(function(done) {
- run('multiple.done.specs.js', args, function(err, result) {
+ run('multiple-done-specs.fixture.js', args, function(err, result) {
res = result;
done(err);
});
@@ -49,7 +49,7 @@ describe('multiple calls to done()', function() {
describe('from a before hook', function() {
before(function(done) {
- run('multiple.done.before.js', args, function(err, result) {
+ run('multiple-done-before.fixture.js', args, function(err, result) {
res = result;
done(err);
});
@@ -71,7 +71,7 @@ describe('multiple calls to done()', function() {
describe('from a beforeEach hook', function() {
before(function(done) {
- run('multiple.done.beforeEach.js', args, function(err, result) {
+ run('multiple-done-beforeEach.fixture.js', args, function(err, result) {
res = result;
done(err);
});
diff --git a/test/integration/only.js b/test/integration/only.spec.js
similarity index 80%
rename from test/integration/only.js
rename to test/integration/only.spec.js
index dc7644e5..592ea17e 100644
--- a/test/integration/only.js
+++ b/test/integration/only.spec.js
@@ -3,7 +3,7 @@ var assert = require('assert');
describe('.only()', function() {
it('should run only tests that marked as `only`', function(done) {
- run('options/only/bdd.js', ['--ui', 'bdd'], function(err, res) {
+ run('options/only/bdd.fixture.js', ['--ui', 'bdd'], function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 11);
@@ -14,7 +14,7 @@ describe('.only()', function() {
});
it('should run only tests that marked as `only`', function(done) {
- run('options/only/tdd.js', ['--ui', 'tdd'], function(err, res) {
+ run('options/only/tdd.fixture.js', ['--ui', 'tdd'], function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 8);
@@ -25,7 +25,7 @@ describe('.only()', function() {
});
it('should run only tests that marked as `only`', function(done) {
- run('options/only/qunit.js', ['--ui', 'qunit'], function(err, res) {
+ run('options/only/qunit.fixture.js', ['--ui', 'qunit'], function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 5);
diff --git a/test/integration/options.js b/test/integration/options.spec.js
similarity index 87%
rename from test/integration/options.js
rename to test/integration/options.spec.js
index 5371b7a7..4755647f 100644
--- a/test/integration/options.js
+++ b/test/integration/options.spec.js
@@ -10,7 +10,7 @@ describe('options', function() {
});
it('should fail synchronous specs', function(done) {
- run('options/async-only.sync.js', args, function(err, res) {
+ run('options/async-only-sync.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 0);
@@ -23,7 +23,7 @@ describe('options', function() {
});
it('should allow asynchronous specs', function(done) {
- run('options/async-only.async.js', args, function(err, res) {
+ run('options/async-only-async.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 1);
@@ -42,7 +42,7 @@ describe('options', function() {
});
it('should stop after the first error', function(done) {
- run('options/bail.js', args, function(err, res) {
+ run('options/bail.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 1);
@@ -82,7 +82,7 @@ describe('options', function() {
});
it('should run the generated test suite', function(done) {
- run('options/delay.js', args, function(err, res) {
+ run('options/delay.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 1);
@@ -96,7 +96,7 @@ describe('options', function() {
});
it('should throw an error if the test suite failed to run', function(done) {
- run('options/delay-fail.js', args, function(err, res) {
+ run('options/delay-fail.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 0);
@@ -113,7 +113,7 @@ describe('options', function() {
describe('--grep', function() {
it('runs specs matching a string', function(done) {
args = ['--grep', 'match'];
- run('options/grep.js', args, function(err, res) {
+ run('options/grep.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 2);
@@ -126,7 +126,7 @@ describe('options', function() {
describe('runs specs matching a RegExp', function() {
it('with RegExp like strings(pattern follow by flag)', function(done) {
args = ['--grep', '/match/i'];
- run('options/grep.js', args, function(err, res) {
+ run('options/grep.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 4);
@@ -138,7 +138,7 @@ describe('options', function() {
it('string as pattern', function(done) {
args = ['--grep', '.*'];
- run('options/grep.js', args, function(err, res) {
+ run('options/grep.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 4);
@@ -152,7 +152,7 @@ describe('options', function() {
describe('with --invert', function() {
it('runs specs that do not match the pattern', function(done) {
args = ['--grep', 'fail', '--invert'];
- run('options/grep.js', args, function(err, res) {
+ run('options/grep.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 4);
@@ -167,7 +167,7 @@ describe('options', function() {
describe('--retries', function() {
it('retries after a certain threshold', function (done) {
args = ['--retries', '3'];
- run('options/retries.js', args, function(err, res) {
+ run('options/retries.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 0);
diff --git a/test/integration/pending.js b/test/integration/pending.spec.js
similarity index 83%
rename from test/integration/pending.js
rename to test/integration/pending.spec.js
index 0c18ab4b..4d4beffc 100644
--- a/test/integration/pending.js
+++ b/test/integration/pending.spec.js
@@ -5,7 +5,7 @@ var args = [];
describe('pending', function() {
describe('pending specs', function() {
it('should be created by omitting a function', function(done) {
- run('pending/spec.js', args, function(err, res) {
+ run('pending/spec.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 1);
assert.equal(res.stats.passes, 0);
@@ -19,7 +19,7 @@ describe('pending', function() {
describe('synchronous skip()', function() {
describe('in spec', function() {
it('should immediately skip the spec and run all others', function(done) {
- run('pending/skip.sync.spec.js', args, function(err, res) {
+ run('pending/skip-sync-spec.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 1);
assert.equal(res.stats.passes, 1);
@@ -32,7 +32,7 @@ describe('pending', function() {
describe('in before', function() {
it('should skip all suite specs', function(done) {
- run('pending/skip.sync.before.js', args, function(err, res) {
+ run('pending/skip-sync-before.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 2);
assert.equal(res.stats.passes, 0);
@@ -45,7 +45,7 @@ describe('pending', function() {
describe('in beforeEach', function() {
it('should skip all suite specs', function(done) {
- run('pending/skip.sync.beforeEach.js', args, function(err, res) {
+ run('pending/skip-sync-beforeEach.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 2);
assert.equal(res.stats.passes, 0);
@@ -60,7 +60,7 @@ describe('pending', function() {
describe('asynchronous skip()', function() {
describe('in spec', function() {
it('should immediately skip the spec and run all others', function(done) {
- run('pending/skip.async.spec.js', args, function(err, res) {
+ run('pending/skip-async-spec.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 1);
assert.equal(res.stats.passes, 1);
@@ -73,7 +73,7 @@ describe('pending', function() {
describe('in before', function() {
it('should skip all suite specs', function(done) {
- run('pending/skip.async.before.js', args, function(err, res) {
+ run('pending/skip-async-before.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 2);
assert.equal(res.stats.passes, 0);
@@ -86,7 +86,7 @@ describe('pending', function() {
describe('in beforeEach', function() {
it('should skip all suite specs', function(done) {
- run('pending/skip.sync.beforeEach.js', args, function(err, res) {
+ run('pending/skip-sync-beforeEach.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 2);
assert.equal(res.stats.passes, 0);
diff --git a/test/integration/regression.js b/test/integration/regression.spec.js
similarity index 89%
rename from test/integration/regression.js
rename to test/integration/regression.spec.js
index f0762ec0..f9f96d31 100644
--- a/test/integration/regression.js
+++ b/test/integration/regression.spec.js
@@ -7,7 +7,7 @@ var runJSON = require('./helpers').runMochaJSON;
describe('regressions', function() {
it('issue-1327: should run all 3 specs exactly once', function(done) {
var args = [];
- run('regression/issue-1327.js', args, function(err, res) {
+ run('regression/issue-1327.fixture.js', args, function(err, res) {
var occurences = function(str) {
var pattern = new RegExp(str, 'g');
return (res.output.match(pattern) || []).length;
@@ -33,7 +33,7 @@ describe('regressions', function() {
it('issue-1794: Can\'t --require custom UI and use it', function(done) {
var simpleUiPath = path.join(__dirname, 'fixtures', 'regression', '1794', 'simple-ui.js');
var args = ['--require', simpleUiPath, '--ui', 'simple-ui'];
- run('regression/1794/issue-1794.js', args, function(err, res) {
+ run('regression/1794/issue-1794.fixture.js', args, function(err, res) {
assert.equal(res.code, 0, 'Custom UI should be loaded');
done();
});
@@ -43,7 +43,7 @@ describe('regressions', function() {
// on a modern MBP takes ±5 seconds on node 4.0, but on older laptops with node 0.12 ±40 seconds.
// Could easily take longer on even weaker machines (Travis-CI containers for example).
this.timeout(120000);
- run('regression/issue-1991.js', [], function(err, res) {
+ run('regression/issue-1991.fixture.js', [], function(err, res) {
assert.equal(/process out of memory/.test(res.output), false, 'fixture\'s process out of memory!');
assert.equal(res.code, 0, 'Runnable fn (it/before[Each]/after[Each]) references should be deleted to avoid memory leaks');
done();
@@ -64,7 +64,7 @@ describe('regressions', function() {
it('issue-2406: should run nested describe.only suites', function(done) {
this.timeout(2000);
- runJSON('regression/issue-2406.js', [], function(err, res) {
+ runJSON('regression/issue-2406.fixture.js', [], function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 2);
@@ -75,7 +75,7 @@ describe('regressions', function() {
});
it('issue-2417: should not recurse infinitely with .only suites nested within each other', function() {
- runJSON('regression/issue-2417.js', [], function(err, res) {
+ runJSON('regression/issue-2417.fixture.js', [], function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 1);
diff --git a/test/integration/reporters.js b/test/integration/reporters.spec.js
similarity index 91%
rename from test/integration/reporters.js
rename to test/integration/reporters.spec.js
index c2f022fe..95956118 100644
--- a/test/integration/reporters.js
+++ b/test/integration/reporters.spec.js
@@ -10,7 +10,7 @@ describe('reporters', function() {
var res;
before(function(done) {
- run('passing.js', ['--reporter', 'markdown'], function(err, result) {
+ run('passing.fixture.js', ['--reporter', 'markdown'], function(err, result) {
res = result;
done(err);
});
@@ -44,7 +44,7 @@ describe('reporters', function() {
'</testsuite>'
];
- run('passing.js', args, function(err, result) {
+ run('passing.fixture.js', args, function(err, result) {
if (err) return done(err);
var xml = fs.readFileSync(tmpFile, 'utf8');
diff --git a/test/integration/retries.js b/test/integration/retries.spec.js
similarity index 88%
rename from test/integration/retries.js
rename to test/integration/retries.spec.js
index 56516b3a..ce76545b 100644
--- a/test/integration/retries.js
+++ b/test/integration/retries.spec.js
@@ -5,7 +5,7 @@ var bang = require('../../lib/reporters/base').symbols.bang;
describe('retries', function() {
it('are ran in correct order', function(done) {
- helpers.runMocha('retries/hooks.js', args, function(err, res) {
+ helpers.runMocha('retries/hooks.fixture.js', args, function(err, res) {
var lines, expected;
assert(!err);
@@ -46,7 +46,7 @@ describe('retries', function() {
});
it('should exit early if test passes', function (done) {
- helpers.runMochaJSON('retries/early-pass.js', args, function(err, res) {
+ helpers.runMochaJSON('retries/early-pass.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.passes, 1);
assert.equal(res.stats.failures, 0);
@@ -58,7 +58,7 @@ describe('retries', function() {
});
it('should let test override', function (done) {
- helpers.runMochaJSON('retries/nested.js', args, function(err, res) {
+ helpers.runMochaJSON('retries/nested.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.passes, 0);
assert.equal(res.stats.failures, 1);
@@ -70,7 +70,7 @@ describe('retries', function() {
});
it('should not hang w/ async test', function (done) {
- helpers.runMocha('retries/async.js', args, function(err, res) {
+ helpers.runMocha('retries/async.fixture.js', args, function(err, res) {
var lines, expected;
assert(!err);
diff --git a/test/integration/timeout.js b/test/integration/timeout.spec.js
similarity index 87%
rename from test/integration/timeout.js
rename to test/integration/timeout.spec.js
index b2dfb201..33b8e330 100644
--- a/test/integration/timeout.js
+++ b/test/integration/timeout.spec.js
@@ -4,7 +4,7 @@ var args = [];
describe('this.timeout()', function() {
it('is respected by sync and async suites', function(done) {
- run('timeout.js', args, function(err, res) {
+ run('timeout.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 0);
diff --git a/test/integration/uncaught.js b/test/integration/uncaught.spec.js
similarity index 89%
rename from test/integration/uncaught.js
rename to test/integration/uncaught.spec.js
index 92a0ce5d..87dde909 100644
--- a/test/integration/uncaught.js
+++ b/test/integration/uncaught.spec.js
@@ -4,7 +4,7 @@ var args = [];
describe('uncaught exceptions', function() {
it('handles uncaught exceptions from hooks', function(done) {
- run('uncaught.hook.js', args, function(err, res) {
+ run('uncaught-hook.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 0);
@@ -18,7 +18,7 @@ describe('uncaught exceptions', function() {
});
it('handles uncaught exceptions from async specs', function(done) {
- run('uncaught.js', args, function(err, res) {
+ run('uncaught.fixture.js', args, function(err, res) {
assert(!err);
assert.equal(res.stats.pending, 0);
assert.equal(res.stats.passes, 0);
diff --git a/test/jsapi/index.js b/test/jsapi/index.js
index 2dbbcb04..a096186b 100644
--- a/test/jsapi/index.js
+++ b/test/jsapi/index.js
@@ -11,16 +11,16 @@ var mocha = new Mocha({
// mocha.reporter('spec');
require('should');
-mocha.addFile('test/suite.js');
-mocha.addFile('test/runner.js');
-mocha.addFile('test/runnable.js');
-mocha.addFile('test/hook.sync.js');
-mocha.addFile('test/hook.sync.nested.js');
-mocha.addFile('test/hook.async.js');
-mocha.addFile('test/acceptance/duration.js');
-mocha.addFile('test/acceptance/fs.js');
-mocha.addFile('test/acceptance/globals.js');
-mocha.addFile('test/acceptance/timeout.js');
+mocha.addFile('test/suite.spec.js');
+mocha.addFile('test/runner.spec.js');
+mocha.addFile('test/runnable.spec.js');
+mocha.addFile('test/hook-sync.spec.js');
+mocha.addFile('test/hook-sync-nested.spec.js');
+mocha.addFile('test/hook-async.spec.js');
+mocha.addFile('test/acceptance/duration.spec.js');
+mocha.addFile('test/acceptance/fs.spec.js');
+mocha.addFile('test/acceptance/globals.spec.js');
+mocha.addFile('test/acceptance/timeout.spec.js');
mocha.run(function(){
console.log('done');
diff --git a/test/mocha.js b/test/mocha.spec.js
similarity index 100%
rename from test/mocha.js
rename to test/mocha.spec.js
diff --git a/test/ms.js b/test/ms.spec.js
similarity index 100%
rename from test/ms.js
rename to test/ms.spec.js
diff --git a/test/reporters/base.js b/test/reporters/base.spec.js
similarity index 100%
rename from test/reporters/base.js
rename to test/reporters/base.spec.js
diff --git a/test/reporters/json.js b/test/reporters/json.spec.js
similarity index 100%
rename from test/reporters/json.js
rename to test/reporters/json.spec.js
diff --git a/test/reporters/nyan.js b/test/reporters/nyan.spec.js
similarity index 100%
rename from test/reporters/nyan.js
rename to test/reporters/nyan.spec.js
diff --git a/test/runnable.js b/test/runnable.spec.js
similarity index 100%
rename from test/runnable.js
rename to test/runnable.spec.js
diff --git a/test/runner.js b/test/runner.spec.js
similarity index 100%
rename from test/runner.js
rename to test/runner.spec.js
diff --git a/test/sanity/sanity.js b/test/sanity/sanity.spec.js
similarity index 100%
rename from test/sanity/sanity.js
rename to test/sanity/sanity.spec.js
diff --git a/test/suite.js b/test/suite.spec.js
similarity index 100%
rename from test/suite.js
rename to test/suite.spec.js
diff --git a/test/test.js b/test/test.spec.js
similarity index 100%
rename from test/test.js
rename to test/test.spec.js
diff --git a/test/utils.js b/test/utils.spec.js
similarity index 100%
rename from test/utils.js
rename to test/utils.spec.js