Skip to content

Commit 0620845

Browse files
committed
allow redos spec only
1 parent 8316a93 commit 0620845

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/specs/redos-spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ describe('ReDOS tests', () => {
1010
return;
1111
}
1212

13-
it(file, () => {
14-
const spec = require(path.resolve(redosDir, file));
13+
const spec = require(path.resolve(redosDir, file));
14+
(spec.only ? fit : it)(file, () => {
1515
const before = process.hrtime();
1616
expect(spec).toRender(spec.html);
1717
const elapsed = process.hrtime(before);

0 commit comments

Comments
 (0)