Skip to content

Commit 2d14301

Browse files
jfmengelssindresorhus
authored andcommitted
Fix incorrect exit visitors
1 parent 19c4582 commit 2d14301

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rules/no-identical-title.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ module.exports = function (context) {
5151

5252
usedTitleNodes.push(purify(titleNode));
5353
},
54-
'Program.exit': function () {
54+
'Program:exit': function () {
5555
usedTitleNodes = [];
5656
}
5757
});

rules/test-title.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = function (context) {
2323
context.report(node, 'Test should have a title.');
2424
}
2525
},
26-
'Program.exit': function () {
26+
'Program:exit': function () {
2727
testCount = 0;
2828
}
2929
});

0 commit comments

Comments
 (0)