Skip to content

Commit

Permalink
renamed smoke test
Browse files Browse the repository at this point in the history
- add notes about what it is intended to do, and what it cannot do

Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
  • Loading branch information
boneskull committed May 26, 2020
1 parent 283b11e commit 6d60eb0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -77,7 +77,7 @@ jobs:
before_install: true
install: npm install --production
name: '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.js
cache:
directories:
- ~/.npm
Expand Down
9 changes: 0 additions & 9 deletions test/sanity/sanity.spec.js

This file was deleted.

15 changes: 15 additions & 0 deletions 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);
});
});

0 comments on commit 6d60eb0

Please sign in to comment.