We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66f0bc6 commit b1e79deCopy full SHA for b1e79de
packages/babel-traverse/test/scope.js
@@ -763,7 +763,7 @@ describe("scope", () => {
763
});
764
it("in function declaration", () => {
765
const functionDeclaration = getPath("function f() { var foo; }").get(
766
- "body.0.expression",
+ "body.0",
767
);
768
expect(functionDeclaration.scope.hasOwnBinding("foo")).toBe(true);
769
@@ -851,7 +851,7 @@ describe("scope", () => {
851
852
853
const functionDeclaration = getPath("function f() { let foo; }").get(
854
855
856
857
0 commit comments