Browse Source

testing setup

develop
Dustin Diaz 10 years ago
parent
commit
0f5cede039
  1. 2
      Makefile
  2. 4
      package.json
  3. 6
      tests/index.js

2
Makefile

@ -1,4 +1,4 @@
.PHONY: test
test:
./node_modules/.bin/mocha tests
./node_modules/.bin/mocha --ui bdd --reporter spec tests

4
package.json

@ -18,6 +18,8 @@
"homepage": "https://github.com/ded/rate-limitter",
"devDependencies": {
"mocha": "~1.18.2",
"redis": "~0.10.1"
"redis": "~0.10.1",
"express": "~3.5.0",
"chai": "~1.9.1"
}
}

6
tests/index.js

@ -0,0 +1,6 @@
var expect = require('chai').expect
describe('rate-limitter', function () {
it('should work', function () {
expect(true).to.be.true
})
})
Loading…
Cancel
Save