allow redos spec only

This commit is contained in:
Tony Brix 2019-04-12 11:33:41 -05:00
parent 8316a936cd
commit 0620845bf0

View File

@ -10,8 +10,8 @@ describe('ReDOS tests', () => {
return;
}
it(file, () => {
const spec = require(path.resolve(redosDir, file));
(spec.only ? fit : it)(file, () => {
const before = process.hrtime();
expect(spec).toRender(spec.html);
const elapsed = process.hrtime(before);