Comparing version 0.3.0-2 to 0.3.0-3
{ | ||
"name": "hewer", | ||
"version": "0.3.0-2", | ||
"version": "0.3.0-3", | ||
"description": "A small and flexible logging library", | ||
@@ -8,6 +8,6 @@ "repository": "https://github.com/matchs/hewer", | ||
"scripts": { | ||
"test": "./node_modules/mocha/bin/mocha" | ||
"test": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- -R spec && ./node_modules/.bin/codecov" | ||
}, | ||
"engines" : { | ||
"node" : ">=4.4.2" | ||
"engines": { | ||
"node": ">=4.4.2" | ||
}, | ||
@@ -22,2 +22,4 @@ "keywords": [ | ||
"devDependencies": { | ||
"codecov": "^1.0.1", | ||
"istanbul": "^0.4.3", | ||
"mocha": "^2.4.5", | ||
@@ -24,0 +26,0 @@ "mocha-sinon": "^1.1.5", |
# Hewer | ||
[![wercker status](https://app.wercker.com/status/1530b3086576b34687fb4819b7a4ff4a/s "wercker status")](https://app.wercker.com/project/bykey/1530b3086576b34687fb4819b7a4ff4a) | ||
[![codecov.io](https://codecov.io/github/matchs/hewer/coverage.svg?branch=master)](https://codecov.io/github/matchs/hewer?branch=master) | ||
@@ -4,0 +5,0 @@ [https://www.npmjs.com/package/hewer](https://www.npmjs.com/package/hewer "Hewer npm registry") |
@@ -12,3 +12,10 @@ var assert = require('assert'); | ||
}); | ||
describe('Testing PatternFilter', function() { | ||
var filter = new filters.PatternFilter(/filtered/gmi, '[REDACTED]') | ||
var inputStr = "Some string that should be filtered" | ||
it("Should filter the word 'filtered'", function() { | ||
assert.equal(filter.apply(inputStr), "Some string that should be [REDACTED]"); | ||
}); | ||
}); |
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
31946
553
364
5