insomnia-mockbin icon indicating copy to clipboard operation
insomnia-mockbin copied to clipboard

tests failing

Open qwo opened this issue 8 years ago • 0 comments

due to https://github.com/Mashape/mockbin/blob/master/src/middleware/negotiate-content.js#L31

a recommended style by standard is pretty: !!spaces, to typecast it to a boolean. Either ways readable but this will make eslint happy and get it back to passing tests.

standard: Use JavaScript Standard Style (https://github.com/feross/standard)
  /Users/stanleyzheng/null/mockbin/src/middleware/negotiate-content.js:35:31: Unnecessary use of boolean literals in conditional expression
  /Users/stanleyzheng/null/mockbin/src/middleware/negotiate-content.js:35:44: Extra semicolon.
npm ERR! Test failed.  See above for more details.

other work around is to specify rules and setup a .eslintrc for the project

qwo avatar Feb 03 '16 04:02 qwo