Skip to content

Commit 894b5a1

Browse files
committed
Move tests/ to test/ for consistency with modern hubot plugins
1 parent cff0bb2 commit 894b5a1

19 files changed

+7
-6
lines changed

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ gulp.task('lint', () => gulp.src(settings.lint, { cwd: settings.dev })
2424
.pipe(plugins.eslint.format())
2525
);
2626

27-
gulp.task('test', () => gulp.src('tests/**/*.js', { read: false })
27+
gulp.task('test', () => gulp.src('test/**/*.js', { read: false })
2828
.pipe(plugins.mocha({ reporter: 'spec' }))
2929
);
3030

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"hubot-mock-adapter": "^1.1.1",
5151
"log": "1.4.0",
5252
"mocked-env": "^1.3.1",
53+
"natives": "^1.1.6",
5354
"nock": "^10.0.0",
5455
"nyc": "^13.0.1",
5556
"sinon": "^6.3.5",
@@ -58,15 +59,15 @@
5859
"main": "index.js",
5960
"scripts": {
6061
"eslint": "eslint .",
61-
"test": "node_modules/.bin/nyc mocha \"tests/**/*.js\""
62+
"test": "nyc mocha"
6263
},
6364
"nyc": {
6465
"temp-directory": "./coverage/.nyc_output",
6566
"include": [
6667
"src"
6768
],
6869
"exclude": [
69-
"tests"
70+
"test"
7071
],
7172
"reporter": [
7273
"html",

settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"lint": [
44
"*.js",
55
"src/**/*.js",
6-
"tests/**/*.js"
6+
"test/**/*.js"
77
]
88
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/test-command-factory.js test/test-command-factory.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var fs = require('fs'),
2525
formatCommand = require('../src/lib/format_command.js'),
2626
utils = require('../src/lib/utils.js');
2727

28-
var ALIAS_FIXTURES = fs.readFileSync('tests/fixtures/aliases.json');
28+
var ALIAS_FIXTURES = fs.readFileSync('test/fixtures/aliases.json');
2929
ALIAS_FIXTURES = JSON.parse(ALIAS_FIXTURES);
3030

3131

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/test-twofactor.js test/test-twofactor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var fs = require('fs'),
2929
formatCommand = require('../src/lib/format_command.js'),
3030
utils = require('../src/lib/utils.js');
3131

32-
var ALIAS_FIXTURES = fs.readFileSync('tests/fixtures/aliases.json');
32+
var ALIAS_FIXTURES = fs.readFileSync('test/fixtures/aliases.json');
3333
ALIAS_FIXTURES = JSON.parse(ALIAS_FIXTURES);
3434

3535
var disableLogger = true,
File renamed without changes.

0 commit comments

Comments
 (0)