☕️ Classic, reliable, trusted test framework for Node.js and the browser
renamed smoke test
Christopher Hiller6d60eb01dae2
diff --git a/.travis.yml b/.travis.ymlindex 6d7a36eb..4a0c8277 100644--- a/.travis.yml+++ b/.travis.yml@@ -77,7 +77,7 @@ jobs:before_install: trueinstall: npm install --productionname: 'Latest Node.js'- script: ./bin/mocha --no-config --reporter spec test/sanity/sanity.spec.js+ script: ./bin/mocha --no-config --reporter spec test/smoke/smoke.spec.jscache:directories:- ~/.npmdiff --git a/test/sanity/sanity.spec.js b/test/sanity/sanity.spec.jsdeleted file mode 100644index 59d58965..00000000--- a/test/sanity/sanity.spec.js+++ /dev/null@@ -1,9 +0,0 @@-'use strict';--var assert = require('assert');--describe('a production installation of Mocha', function() {- it('should be able to execute a test', function() {- assert.ok(true);- });-});diff --git a/test/smoke/smoke.spec.js b/test/smoke/smoke.spec.jsnew file mode 100644index 00000000..7f1365f3--- /dev/null+++ b/test/smoke/smoke.spec.js@@ -0,0 +1,15 @@+'use strict';++// This test ensures Mocha's dependencies are properly in place,+// and is intended to be run after an `npm install --production` in a clean+// working copy. It helps avoid publishing Mocha with `dependencies`+// in `devDependencies` or otherwise in the wrong place.+// It does not ensure that all files are present in the published package!++var assert = require('assert');++describe('a production installation of Mocha', function() {+ it('should be able to execute a test', function() {+ assert.ok(true);+ });+});