Skip to content

Commit

Permalink
test(api): log API to console
Browse files Browse the repository at this point in the history
  • Loading branch information
gregswindle committed Apr 12, 2018
1 parent a2a7d05 commit f2a82b3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@ jobs:
provider: script
skip_cleanup: true
script:
# - npm run docs:changelog
- npx travis-deploy-once "npx semantic-release"
9 changes: 8 additions & 1 deletion lib/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ const readmeInfo = require('./__fixtures__/http/200/readme-info')
const readmeInspector = require('..')
const ReadmeScore = require('../readme-score')

const logModuleApi = () => {
const msg = ' === module:readmeInspector API ==='
console.log(msg)
console.log(readmeInspector)
console.log(msg)
}

const noop = () => null

describe('readmeInspector\'s', () => {
Expand Down Expand Up @@ -144,5 +151,5 @@ describe('readmeInspector\'s', () => {
})
})

console.log(readmeInspector)
logModuleApi()
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"lint:manifest": "fixpack",
"lint:md": "prettier ./**/*.md -prose-wrap always --write",
"posttest:ci:coverage:codacy":
"cat ./lib/__tests__/coverage/lcov.info | codacy-coverage",
"cat ./lib/__tests__/coverage/lcov.info | codacy-coverage -l javascript -t $CODACY_PROJECT_TOKEN_README_INSPECTOR",
"precommit": "lint-staged",
"prepare": "npm run lint && npm run security",
"prepublish": "npm run security",
Expand Down

0 comments on commit f2a82b3

Please sign in to comment.