mirror of
https://github.com/emn178/js-sha256.git
synced 2026-08-12 20:32:16 +08:00
update coverage library
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
/node_modules/
|
|
||||||
/tests/
|
|
||||||
+2
-1
@@ -1,2 +1,3 @@
|
|||||||
/node_modules/
|
/node_modules/
|
||||||
/covreporter/
|
/coverage/
|
||||||
|
/.nyc_output/
|
||||||
|
|||||||
+2
-1
@@ -1,5 +1,6 @@
|
|||||||
/node_modules/
|
/node_modules/
|
||||||
/covreporter/
|
/coverage/
|
||||||
|
/.nyc_output/
|
||||||
/tests/
|
/tests/
|
||||||
.covignore
|
.covignore
|
||||||
.travis.yml
|
.travis.yml
|
||||||
|
|||||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Generated
+1604
-104
File diff suppressed because it is too large
Load Diff
+11
-6
@@ -5,16 +5,16 @@
|
|||||||
"main": "src/sha256.js",
|
"main": "src/sha256.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"expect.js": "~0.3.1",
|
"expect.js": "~0.3.1",
|
||||||
"jscoverage": "~0.5.9",
|
|
||||||
"mocha": "~2.3.4",
|
"mocha": "~2.3.4",
|
||||||
"uglifyjs": "~2.4.10",
|
"nyc": "^11.3.0",
|
||||||
|
"uglify-js": "^3.1.9",
|
||||||
"webworker-threads": "^0.7.13"
|
"webworker-threads": "^0.7.13"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha tests/node-test.js -r jscoverage",
|
"test": "nyc mocha tests/node-test.js",
|
||||||
"report": "mocha tests/node-test.js -r jscoverage --covout=html",
|
"report": "nyc --reporter=html --reporter=text mocha tests/node-test.js",
|
||||||
"coveralls": "mocha tests/node-test.js -R mocha-lcov-reporter -r jscoverage | coveralls",
|
"coveralls": "nyc report --reporter=text-lcov | coveralls",
|
||||||
"build": "uglifyjs src/sha256.js --compress --mangle --comments --output build/sha256.min.js"
|
"build": "uglifyjs src/sha256.js -c -m eval --comments -o build/sha256.min.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@@ -35,5 +35,10 @@
|
|||||||
"homepage": "https://github.com/emn178/js-sha256",
|
"homepage": "https://github.com/emn178/js-sha256",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/emn178/js-sha256/issues"
|
"url": "https://github.com/emn178/js-sha256/issues"
|
||||||
|
},
|
||||||
|
"nyc": {
|
||||||
|
"exclude": [
|
||||||
|
"tests"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,12 +79,24 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (!(typeof JS_SHA256_NO_ARRAY_BUFFER === 'boolean' && JS_SHA256_NO_ARRAY_BUFFER)) {
|
if (!(typeof JS_SHA256_NO_ARRAY_BUFFER === 'boolean' && JS_SHA256_NO_ARRAY_BUFFER)) {
|
||||||
|
testCases.sha256_hmac.Uint8Array = {
|
||||||
|
'e48411262715c8370cd5e7bf8e82bef53bd53712d007f3429351843b77c7bb9b': [
|
||||||
|
new Uint8Array(0),
|
||||||
|
'Hi There'
|
||||||
|
]
|
||||||
|
};
|
||||||
testCases.sha256_hmac.ArrayBuffer = {
|
testCases.sha256_hmac.ArrayBuffer = {
|
||||||
'e48411262715c8370cd5e7bf8e82bef53bd53712d007f3429351843b77c7bb9b': [
|
'e48411262715c8370cd5e7bf8e82bef53bd53712d007f3429351843b77c7bb9b': [
|
||||||
new ArrayBuffer(0),
|
new ArrayBuffer(0),
|
||||||
'Hi There'
|
'Hi There'
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
testCases.sha224_hmac.Uint8Array = {
|
||||||
|
'da8f94de91d62154b55ea4e8d6eb133f6d553bcd1f1ba205b9488945': [
|
||||||
|
new ArrayBuffer(0),
|
||||||
|
'Hi There'
|
||||||
|
]
|
||||||
|
};
|
||||||
testCases.sha224_hmac.ArrayBuffer = {
|
testCases.sha224_hmac.ArrayBuffer = {
|
||||||
'da8f94de91d62154b55ea4e8d6eb133f6d553bcd1f1ba205b9488945': [
|
'da8f94de91d62154b55ea4e8d6eb133f6d553bcd1f1ba205b9488945': [
|
||||||
new ArrayBuffer(0),
|
new ArrayBuffer(0),
|
||||||
|
|||||||
Reference in New Issue
Block a user