Skip to content

Commit

Permalink
Fixed: eslint problem
Browse files Browse the repository at this point in the history
  • Loading branch information
roshangade committed Apr 18, 2020
1 parent f6d224b commit e636935
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/middlewares/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const response = (req, res) => {
defineObjectProperty(res, 'send', (data, encoding, callback) => {
send.call(res, data, encoding || 'utf8', callback)
})

}

module.exports = response
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"name": "rest-api-framework",
"version": "0.2.0-beta.2",
"version": "0.2.0",
"description": "Framework for building REST API with TypeScript support",
"main": "api.js",
"types": "types",
"engines": {
"node": ">=12.9"
},
"scripts": {
"test": "nyc --reporter=html mocha",
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov",
Expand Down Expand Up @@ -31,13 +34,13 @@
"devDependencies": {
"@types/node": "^12.x",
"chai": "^4.x",
"dtslint": "^2.x",
"dtslint": "^3.x",
"eslint": "^6.x",
"eslint-config-google": "^0.14.x",
"mocha": "^7.x",
"node-mocks-http": "roshangade/node-mocks-http",
"nyc": "^15.x",
"sinon": "^8.x"
"sinon": "^9.x"
},
"dependencies": {}
}
2 changes: 0 additions & 2 deletions test/lib/request-listener.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ let requestListener
let route

describe('#request-listener', function() {

beforeEach(function() {
delete require.cache[require.resolve('./../../lib/stack')]
delete require.cache[require.resolve('./../../lib/request-listener')]
Expand Down Expand Up @@ -114,7 +113,6 @@ describe('#request-listener', function() {
const res = http.createResponse()

const _route = sinon.spy(function(req, res) {
console.log('=======> wwwwwwwwwww')
expect(req.params.uid).to.be.equal('foo')
res.status(204).end()
})
Expand Down

0 comments on commit e636935

Please sign in to comment.