Comparing version 1.7.4 to 1.7.5
{ | ||
"name": "cz", | ||
"version": "1.7.4", | ||
"version": "1.7.5", | ||
"description": "A simple config utility for nodejs", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"test": "xo && npm run coverage", | ||
"coverage": "cross-env NODE_ENV=test nyc mocha ./test/**/* --arg:test=arg_test_value && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage && rm -rf ./nyc_output", | ||
"test": "xo", | ||
"coverage": "echo '{}' > ./test/config.json && cross-env NODE_ENV=test nyc mocha ./test/**/* --arg:test=arg_test_value && cat ./coverage/lcov.info | coveralls && rm -rf ./coverage && rm -rf ./nyc_output", | ||
"build": "babel -d lib/ src/", | ||
@@ -10,0 +10,0 @@ "prepublish": "npm run build" |
# cz | ||
[![Coverage Status](https://coveralls.io/repos/github/OmgImAlexis/cz/badge.svg?branch=master)](https://coveralls.io/github/OmgImAlexis/cz?branch=master) | ||
A simple config utility for nodejs | ||
@@ -3,0 +4,0 @@ |
'use strict'; | ||
import fs from 'fs'; | ||
import path from 'path'; | ||
@@ -85,4 +86,8 @@ | ||
it(`config.json should contain {"test": "value"}`, () => { | ||
const configJson = require('./config.json'); | ||
expect(configJson.test).to.equal('value'); | ||
fs.readFile(path.join(__dirname, './config.json'), 'utf8', (err, data) => { | ||
if (err) { | ||
throw err; | ||
} | ||
expect(JSON.parse(data).test).to.equal('value'); | ||
}); | ||
}); | ||
@@ -89,0 +94,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
326762
655
55
2