Comparing version 1.7.0 to 1.8.0
@@ -1,8 +0,8 @@ | ||
const fetch = require("node-fetch"); | ||
const fetch = require('node-fetch'); | ||
function send(type, body) { | ||
fetch("http://localhost:" + process.env.MAJESTIC_PORT + "/" + type, { | ||
method: "post", | ||
fetch('http://localhost:' + process.env.MAJESTIC_PORT + '/' + type, { | ||
method: 'post', | ||
body: JSON.stringify(body), | ||
headers: { "Content-Type": "application/json" } | ||
headers: { 'Content-Type': 'application/json' }, | ||
}); | ||
@@ -18,4 +18,4 @@ } | ||
onTestStart(test) { | ||
send("test-start", { | ||
path: test.path | ||
send('test-start', { | ||
path: test.path, | ||
}); | ||
@@ -25,3 +25,3 @@ } | ||
onTestResult(test, testResult, aggregatedResult) { | ||
send("test-result", { | ||
send('test-result', { | ||
path: testResult.testFilePath, | ||
@@ -38,6 +38,6 @@ failureMessage: testResult.failureMessage, | ||
ancestorTitles: result.ancestorTitles, | ||
duration: result.duration | ||
duration: result.duration, | ||
})), | ||
aggregatedResult: | ||
process.env.REPORT_SUMMARY === "report" | ||
process.env.REPORT_SUMMARY === 'report' | ||
? { | ||
@@ -47,6 +47,6 @@ numFailedTests: aggregatedResult.numFailedTests, | ||
numPassedTestSuites: aggregatedResult.numPassedTestSuites, | ||
numFailedTestSuites: aggregatedResult.numFailedTestSuites | ||
numFailedTestSuites: aggregatedResult.numFailedTestSuites, | ||
} | ||
: null, | ||
console: testResult.console | ||
console: testResult.console, | ||
}); | ||
@@ -58,4 +58,4 @@ } | ||
onRunComplete(contexts, results) { | ||
send("run-complete", { | ||
coverageMap: results.coverageMap | ||
send('run-complete', { | ||
coverageMap: results.coverageMap, | ||
}); | ||
@@ -62,0 +62,0 @@ } |
{ | ||
"name": "majestic", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=7.10.1" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
19498950
6879
4