Socket
Socket
Sign inDemoInstall

html-reporter

Package Overview
Dependencies
Maintainers
6
Versions
309
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-reporter - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="0.4.1"></a>
## [0.4.1](https://github.com/gemini-testing/html-reporter/compare/v0.4.0...v0.4.1) (2017-08-29)
### Bug Fixes
* bug with the substitution of the base host through env var ([2b01f9a](https://github.com/gemini-testing/html-reporter/commit/2b01f9a))
<a name="0.4.0"></a>

@@ -7,0 +17,0 @@ # [0.4.0](https://github.com/gemini-testing/html-reporter/compare/v0.3.0...v0.4.0) (2017-08-27)

12

lib/view-model.js
'use strict';
const _ = require('lodash');
const Uri = require('urijs');
const utils = require('../utils');

@@ -106,4 +107,5 @@

const browserId = result.browserId;
const suite = result.suite;
const browserConfig = this._toolConfig.forBrowser(browserId);
const suite = result.suite;
const suiteUrl = browserConfig.getAbsoluteUrl(suite.url);
const metaInfo = {

@@ -116,3 +118,3 @@ url: suite.fullUrl,

const testResult = _.assign({
suiteUrl: browserConfig.getAbsoluteUrl(suite.url),
suiteUrl: this._configureSuiteUrl(suiteUrl),
name: browserId,

@@ -142,2 +144,8 @@ metaInfo: JSON.stringify(metaInfo, null, 4) || 'Meta info is not available'

_configureSuiteUrl(suiteUrl) {
return _.isEmpty(this._pluginConfig.baseHost)
? suiteUrl
: Uri(this._pluginConfig.baseHost).resource(suiteUrl).href();
}
static hasFails(node) {

@@ -144,0 +152,0 @@ return walk(node, ViewModel.hasFails, node.result && (node.result.error || node.result.fail));

5

package.json
{
"name": "html-reporter",
"version": "0.4.0",
"version": "0.4.1",
"description": "Plugin for gemini which is intended to aggregate the results of tests running into html report",

@@ -42,3 +42,4 @@ "main": "index.js",

"lodash": "^4.17.4",
"uglify-js": "^2.7.3"
"uglify-js": "^2.7.3",
"urijs": "^1.18.12"
},

@@ -45,0 +46,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc