From 3835ae10f4d8e30e9003112ec1306390d0fe5c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Tue, 12 Jul 2022 15:08:10 -0400 Subject: [PATCH] fix invalid test --- packages/babel-traverse/test/scope.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-traverse/test/scope.js b/packages/babel-traverse/test/scope.js index 7c229183dd93..ec1f999dad80 100644 --- a/packages/babel-traverse/test/scope.js +++ b/packages/babel-traverse/test/scope.js @@ -653,7 +653,7 @@ describe("scope", () => { describe("duplicate declaration", () => { it("should not throw error on duplicate class and function declaration", () => { const ast = [ - t.classDeclaration(t.identifier("A"), t.super(), t.classBody([]), []), + t.classDeclaration(t.identifier("A"), null, t.classBody([]), []), t.functionDeclaration(t.identifier("A"), [], t.blockStatement([])), ];