Skip to content

Commit b1e79de

Browse files
Fix traverse scope tests (#14202)
1 parent 66f0bc6 commit b1e79de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/babel-traverse/test/scope.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ describe("scope", () => {
763763
});
764764
it("in function declaration", () => {
765765
const functionDeclaration = getPath("function f() { var foo; }").get(
766-
"body.0.expression",
766+
"body.0",
767767
);
768768
expect(functionDeclaration.scope.hasOwnBinding("foo")).toBe(true);
769769
});
@@ -851,7 +851,7 @@ describe("scope", () => {
851851
});
852852
it("in function declaration", () => {
853853
const functionDeclaration = getPath("function f() { let foo; }").get(
854-
"body.0.expression",
854+
"body.0",
855855
);
856856
expect(functionDeclaration.scope.hasOwnBinding("foo")).toBe(true);
857857
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy