From 72147214bcec6b86e58e5ef4158640229098d3b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Wed, 19 May 2021 09:14:42 -0400 Subject: [PATCH] update test fixtures --- .../valid-syntax-with-attributes/options.json | 3 ++- .../valid-syntax-with-attributes/output.json | 5 +---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/options.json b/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/options.json index 478bc014191c..bc028a2d77d0 100644 --- a/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/options.json +++ b/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/options.json @@ -1,3 +1,4 @@ { - "plugins": ["flow", "jsx", "estree", "importAssertions"] + "plugins": ["flow", "jsx", "estree", "importAssertions"], + "sourceType": "module" } diff --git a/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/output.json b/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/output.json index 13e1bafa7935..e08a9f151de8 100644 --- a/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/output.json +++ b/packages/babel-parser/test/fixtures/estree/import-assertions/valid-syntax-with-attributes/output.json @@ -1,13 +1,10 @@ { "type": "File", "start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":51}}, - "errors": [ - "SyntaxError: 'import' and 'export' may appear only with 'sourceType: \"module\"' (1:0)" - ], "program": { "type": "Program", "start":0,"end":51,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":51}}, - "sourceType": "script", + "sourceType": "module", "interpreter": null, "body": [ {