karma-json-result-reporter
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "karma-json-result-reporter", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "test results as json file", | ||
@@ -27,4 +27,4 @@ "main": "index.js", | ||
"dependencies": { | ||
"ramda": "^0.19.1" | ||
"fun-map": "^3.3.1" | ||
} | ||
} |
# Karma JSON result reporter | ||
[](https://www.npmjs.com/package/karma-json-result-reporter) | ||
This is a karma reporter that will export your test data in the form of JSON but keys all describe contexts such as: | ||
@@ -38,4 +41,4 @@ | ||
In your `karma.conf.js` add | ||
- `'karma-json-result-reporter'` to your plugins like below: | ||
- `'json-result'` to your reporters like below: | ||
- `'karma-json-result-reporter'` to your plugins | ||
- `'json-result'` to your reporters | ||
@@ -42,0 +45,0 @@ ``` |
@@ -1,2 +0,2 @@ | ||
var R = require('ramda'); | ||
var funMap = require('fun-map'); | ||
@@ -18,6 +18,13 @@ function simplifyResult(result) { | ||
function getPathArray(result) { | ||
var path = result.suite.slice(); | ||
path.push(result.description); | ||
return path; | ||
} | ||
function reduceToObject(accumulator, result) { | ||
var simplifiedResult = simplifyResult(result); | ||
var path = R.append(result.description, result.suite); | ||
return R.assocPath(path, simplifiedResult, accumulator); | ||
var path = getPathArray(result); | ||
return funMap.assocInM(accumulator, path, simplifiedResult); | ||
} | ||
@@ -24,0 +31,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
6893
152
69
1
+ Addedfun-map@^3.3.1
+ Addedfun-map@3.3.1(transitive)
- Removedramda@^0.19.1
- Removedramda@0.19.1(transitive)