Skip to content

Commit e079353

Browse files
committed
chore: linting of recent additions
1 parent 4f8409b commit e079353

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

test/traverse.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('object expression', () => {
7878

7979
describe('chain expression', () =>
8080
it('expressions', function() {
81-
let tree = {
81+
const tree = {
8282
type: 'ChainExpression',
8383
expression: [{
8484
type: 'MemberExpression',
@@ -95,14 +95,12 @@ describe('chain expression', () =>
9595
}]
9696
};
9797

98-
let log = [];
98+
const log = [];
9999
esrecurse.visit(tree, {
100-
Identifier(node) {
101-
return log.push(node.name);
102-
}
100+
Identifier(node) {
101+
return log.push(node.name);
103102
}
104-
);
105-
103+
});
106104

107105
return expect(log).to.deep.equal(['a', 'b']);
108106
})

0 commit comments

Comments
 (0)