Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-sonar

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-sonar - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

src/escape.js

2

__test__/reporter.spec.js

@@ -18,3 +18,3 @@ const Reporter = require('../src/reporter');

{
fullName: 'When doing this should be ok',
fullName: 'When doing this should "be" ok',
duration: 30,

@@ -21,0 +21,0 @@ failureMessages: []

@@ -5,2 +5,11 @@ # Changelog

### [0.2.1](https://github.com/sh33dafi/jest-sonar/compare/v0.2.0...v0.2.1) (2019-08-12)
### Bug Fixes
* Escaped strings inside attributes ([99add1c](https://github.com/sh33dafi/jest-sonar/commit/99add1c))
## [0.2.0](https://github.com/sh33dafi/jest-sonar/compare/v0.1.1...v0.2.0) (2019-08-01)

@@ -7,0 +16,0 @@

{
"name": "jest-sonar",
"version": "0.2.0",
"version": "0.2.1",
"description": "A sonar reporter for jest",

@@ -5,0 +5,0 @@ "keywords": [

const path = require('path');
const xml = require('xml');
const escape = require('./escape');

@@ -14,3 +16,3 @@ class Reporter {

name: testCase.fullName,
duration: testCase.duration,
duration: '' + testCase.duration,
failures: testCase.failureMessages,

@@ -42,3 +44,3 @@ status: testCase.status

const buildTestCase = testCase =>
`<testCase name="${testCase.name}" duration="${testCase.duration}"`;
`<testCase name="${escape(testCase.name)}" duration="${escape(testCase.duration)}"`;
const buildFailure = failure =>

@@ -45,0 +47,0 @@ `<failure message="Error"><![CDATA[${failure}]]></failure>`;

Sorry, the diff of this file is not supported yet

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