bench-node
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -16,3 +16,3 @@ const { Suite, htmlReport } = require('../../lib'); | ||
}) | ||
.add('multiple replaces', function () { | ||
.add('Multiple replaces', function () { | ||
const subject = '123123123123123123123123123123123123123123123123' | ||
@@ -19,0 +19,0 @@ const r = subject.replace(/1/g, 'a').replace(/2/g, 'b').replace(/3/g, 'c') |
@@ -19,3 +19,3 @@ const fs = require('node:fs'); | ||
let position = 20; | ||
const colors = ['green', 'blue', 'cyan', 'pink', 'grey', 'purple', 'red'] | ||
const colors = ['blue', 'orange', 'yellow', 'purple', 'black', 'grey', 'red', 'green', 'pink', 'cyan']; | ||
for (const d of durations) { | ||
@@ -22,0 +22,0 @@ css += ` |
{ | ||
"name": "bench-node", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -77,3 +77,3 @@ const { describe, it, before } = require('node:test'); | ||
}) | ||
.add('multiple replaces', function () { | ||
.add('Multiple replaces', function () { | ||
const subject = '123123123123123123123123123123123123123123123123' | ||
@@ -101,2 +101,7 @@ const r = subject.replace(/1/g, 'a').replace(/2/g, 'b').replace(/3/g, 'c') | ||
it('htmlContent bench suite should be used as class name', () => { | ||
assert.ok(htmlContent.includes('circle-Multiple-replaces')); | ||
assert.ok(htmlContent.includes('circle-single-with-matcher')); | ||
}); | ||
it('htmlContent should not contain replace tags {{}}', () => { | ||
@@ -103,0 +108,0 @@ assert.ok(htmlContent.includes('{{') === false); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
113138
64
2049