Skip to content

Commit 9723816

Browse files
committed
Unit test setup of abe-express
1 parent c71d5d8 commit 9723816

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

Gruntfile.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,14 @@ module.exports = function (grunt) {
2020
'**/*.js',
2121
'!node_modules/**'
2222
]
23+
},
24+
mochaTest: {
25+
options: {
26+
reporter: 'list'
27+
},
28+
src: [
29+
'test/*.js'
30+
]
2331
}
2432
});
2533

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"grunt-cli": "~0.1.13",
3838
"grunt-contrib-jshint": "~0.10.0",
3939
"grunt-jscs": "~0.8.1",
40+
"grunt-mocha-test": "~0.12.2",
4041
"load-grunt-tasks": "~1.0.0"
4142
},
4243
"peerDependencies": {

test/abe-express.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
var expect = require('expect.js'),
2+
abeExpress = require('../libs/abe-express.js');
3+
4+
describe('ABE Express response test helper', function () {
5+
it('Should be able to test the headers or body', function () {
6+
expect(abeExpress.full).to.be.a('function');
7+
expect(abeExpress.header).to.be.a('function');
8+
});
9+
});

0 commit comments

Comments
 (0)