Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 9c0d6fb

Browse files
committed
Avoid variable name shadowing
1 parent d34a2be commit 9c0d6fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/views/tabbable.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import TabGroup from '../../lib/tab-group';
77
describe('makeTabbable', function() {
88
let atomEnv, tabGroup;
99

10-
const e = {
10+
const fakeEvent = {
1111
stopPropagation() {},
1212
};
1313

@@ -43,11 +43,11 @@ describe('makeTabbable', function() {
4343
commands.prop('target').setter(element);
4444

4545
sinon.stub(tabGroup, 'focusAfter');
46-
commands.find('Command[command="core:focus-next"]').prop('callback')(e);
46+
commands.find('Command[command="core:focus-next"]').prop('callback')(fakeEvent);
4747
assert.isTrue(tabGroup.focusAfter.called);
4848

4949
sinon.stub(tabGroup, 'focusBefore');
50-
commands.find('Command[command="core:focus-previous"]').prop('callback')(e);
50+
commands.find('Command[command="core:focus-previous"]').prop('callback')(fakeEvent);
5151
assert.isTrue(tabGroup.focusBefore.called);
5252
});
5353

0 commit comments

Comments
 (0)