Skip to content

Commit

Permalink
Fix editor support test for node 4 (#4640)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored and cpojer committed Oct 9, 2017
1 parent dfbfaa0 commit 412dd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jest-editor-support/src/Snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default class Snapshot {
};
const Visitors = {
Identifier(path, state, matchers) {
if (matchers.includes(path.node.name)) {
if (matchers.indexOf(path.node.name) >= 0) {
state.found.push({
node: path.node,
parents: getArrayOfParents(path),
Expand Down

0 comments on commit 412dd61

Please sign in to comment.