Skip to content

Commit 9f9819a

Browse files
Stephen RodriguezStephen Rodriguez
authored andcommitted
initial testing framework
1 parent 29e7667 commit 9f9819a

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

__tests__/jenkins.spec.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const chai = require('chai');
2+
const gulpJenkins = require('../');
3+
4+
describe('Gulp Jenkins', function() {
5+
6+
it('should exist', function() {
7+
chai.expect(gulpJenkins).to.exist;
8+
});
9+
10+
});

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Jenkins Plugin for Gulp",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 0"
7+
"test": "mocha --recursive __tests__/"
88
},
99
"repository": {
1010
"type": "git",
@@ -16,15 +16,16 @@
1616
"keywords": [
1717
"jenkins",
1818
"gulp",
19-
"plugin",
20-
"gulp-plugin"
19+
"plugin"
2120
],
2221
"author": "Stephen Rodriguez <steprodriguez10@gmail.com>",
2322
"license": "GNU GPL v2",
2423
"homepage": "https://github.com/Stephn-R/gulp-jenkins",
2524
"dependencies": {
25+
"chai": "^3.5.0",
2626
"gulp-util": "^3.0.4",
2727
"jenkins-api": "^0.2.7",
28+
"mocha": "^3.1.2",
2829
"object-assign": "^2.0.0",
2930
"through2": "^0.6.5"
3031
}

0 commit comments

Comments
 (0)