Skip to content

Commit

Permalink
Fix traverse scope tests (#14202)
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Jan 25, 2022
1 parent 66f0bc6 commit b1e79de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/babel-traverse/test/scope.js
Expand Up @@ -763,7 +763,7 @@ describe("scope", () => {
});
it("in function declaration", () => {
const functionDeclaration = getPath("function f() { var foo; }").get(
"body.0.expression",
"body.0",
);
expect(functionDeclaration.scope.hasOwnBinding("foo")).toBe(true);
});
Expand Down Expand Up @@ -851,7 +851,7 @@ describe("scope", () => {
});
it("in function declaration", () => {
const functionDeclaration = getPath("function f() { let foo; }").get(
"body.0.expression",
"body.0",
);
expect(functionDeclaration.scope.hasOwnBinding("foo")).toBe(true);
});
Expand Down

0 comments on commit b1e79de

Please sign in to comment.