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

mochawesome

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mochawesome - npm Package Compare versions

Comparing version 1.5.3 to 1.5.4

3

CHANGELOG.md
#Changelog
###1.5.4
- Run pending tests thru `cleanTest` function. Fixes possible scenario where a pending test with a large amount of text could cause node to run out of memory. See [#94](https://github.com/adamgruber/mochawesome/issues/94)
###1.5.3

@@ -4,0 +7,0 @@ - Fixed build issues on Windows. See [#84](https://github.com/adamgruber/mochawesome/pull/84)

2

lib/mochawesome.js

@@ -86,3 +86,3 @@ /*jshint loopfunc: true */

allTests: allTests.map(cleanTest),
allPending: allPending,
allPending: allPending.map(cleanTest),
allPasses: allPasses.map(cleanTest),

@@ -89,0 +89,0 @@ allFailures: allFailures.map(cleanTest),

{
"name": "mochawesome",
"version": "1.5.3",
"version": "1.5.4",
"description": "A Gorgeous HTML/CSS Reporter for Mocha.js",

@@ -5,0 +5,0 @@ "scripts": {

@@ -6,111 +6,117 @@ /* Test courtesy of @adaphi */

// Change this to drastically alter the memory impact
var numTests = 1000;
// Change this to drastically alter the memory impact
var numTests = 1000;
before('before hook 1', function(done) {
done();
});
before('before hook 1', function(done) {
done();
});
before('before hook 2', function(done) {
done();
});
before('before hook 2', function(done) {
done();
});
before('before hook 3', function(done) {
done();
});
before('before hook 3', function(done) {
done();
});
before('before hook 4', function(done) {
done();
});
before('before hook 4', function(done) {
done();
});
before('before hook 5', function(done) {
done();
});
before('before hook 5', function(done) {
done();
});
before('before hook 6', function(done) {
done();
});
before('before hook 6', function(done) {
done();
});
before('before hook 7', function(done) {
done();
});
before('before hook 7', function(done) {
done();
});
before('before hook 8', function(done) {
done();
});
before('before hook 8', function(done) {
done();
});
beforeEach('beforeEach hook 1', function(done) {
done();
});
beforeEach('beforeEach hook 1', function(done) {
done();
});
beforeEach('beforeEach hook 2', function(done) {
done();
});
beforeEach('beforeEach hook 2', function(done) {
done();
});
beforeEach('beforeEach hook 3', function(done) {
done();
});
beforeEach('beforeEach hook 3', function(done) {
done();
});
beforeEach('beforeEach hook 4', function(done) {
done();
});
beforeEach('beforeEach hook 4', function(done) {
done();
});
afterEach('afterEach hook 1', function(done) {
done();
});
afterEach('afterEach hook 1', function(done) {
done();
});
afterEach('afterEach hook 2', function(done) {
done();
});
afterEach('afterEach hook 2', function(done) {
done();
});
after('after hook 1', function(done) {
done();
});
after('after hook 1', function(done) {
done();
});
after('after hook 2', function(done) {
done();
});
after('after hook 2', function(done) {
done();
});
for (var i=1; i<=numTests; i++) {
it( 'test ' + i, genTestBody() );
}
for (var i=1; i<=numTests; i++) {
it( 'test ' + i, genTestBody() );
}
function genTestBody() {
return function(done) {
// This just needs to contain a lot of stuff.
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
done();
}
}
// skipped tests
for (var i=1; i<=numTests; i++) {
it( 'skipped test ' + i, genTestBody(true) );
}
function genTestBody(skip) {
return function(done) {
// This just needs to contain a lot of stuff.
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
// AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
if (skip) this.skip();
done();
}
}
});
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