allow redos spec only
This commit is contained in:
parent
8316a936cd
commit
0620845bf0
@ -10,8 +10,8 @@ describe('ReDOS tests', () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
it(file, () => {
|
const spec = require(path.resolve(redosDir, file));
|
||||||
const spec = require(path.resolve(redosDir, file));
|
(spec.only ? fit : it)(file, () => {
|
||||||
const before = process.hrtime();
|
const before = process.hrtime();
|
||||||
expect(spec).toRender(spec.html);
|
expect(spec).toRender(spec.html);
|
||||||
const elapsed = process.hrtime(before);
|
const elapsed = process.hrtime(before);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user