Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

代码覆盖率测试

  • Loading branch information...
commit af6064308725570107bfe58211a898275bf6319b 1 parent 131c2b3
@leizongmin authored
Showing with 34 additions and 11 deletions.
  1. +3 −1 .gitignore
  2. +31 −10 package.json
View
4 .gitignore
@@ -14,4 +14,6 @@ results
node_modules
npm-debug.log
-benchmark/result*.html
+benchmark/result*.html
+
+coverage.html
View
41 package.json
@@ -1,21 +1,42 @@
{
- "name": "xss",
- "main": "./lib/index.js",
- "version": "0.1.2",
- "description": "XSS攻击代码过滤 Remove XSS attack vectors from user-supplied HTML",
- "author": "leizongmin <leizongmin@gmail.com> (http://ucdok.com)",
+ "name": "xss",
+ "main": "./lib/index.js",
+ "version": "0.1.2",
+ "description": "XSS攻击代码过滤 Remove XSS attack vectors from user-supplied HTML",
+ "author": "leizongmin <leizongmin@gmail.com> (http://ucdok.com)",
+ "contributors": [
+ {
+ "name": "Zongmin Lei",
+ "email": "leizongmin@gmail.com"
+ }
+ ],
"repository": {
"type": "git",
- "url": "git://github.com/leizongmin/js-xss.git"
+ "url": "git://github.com/leizongmin/js-xss.git"
},
"engines": {
- "node": ">= 0.6.0"
+ "node": ">= 0.6.0"
},
"devDependencies": {
- "mocha": ">= 1.2"
+ "mocha": "1.8.2",
+ "blanket": "1.1.5",
+ "browserify": "*",
+ "uglify-js": "*"
},
"scripts": {
- "test": "mocha -t 5000"
+ "blanket": {
+ "pattern": "xss/lib"
+ },
+ "test": "mocha --require blanket -R html-cov > coverage.html -t 5000"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "https://raw.github.com/leizongmin/js-xss/master/MIT-License"
+ }
+ ],
+ "bugs": {
+ "url": "https://github.com/leizongmin/js-xss/issues"
},
"homepage": "https://github.com/leizongmin/js-xss",
"keywords": [
@@ -30,4 +51,4 @@
"filter",
"validator"
]
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.