Update prettier to v2 (#11579)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
const babel = require("@babel/core");
|
||||
|
||||
test("Doesn't use the same object for two different nodes in the AST", function() {
|
||||
test("Doesn't use the same object for two different nodes in the AST", function () {
|
||||
const code = 'import Foo from "bar"; Foo; Foo;';
|
||||
|
||||
const ast = babel.transform(code, {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
const babel = require("@babel/core");
|
||||
const vm = require("vm");
|
||||
|
||||
test("Re-export doesn't overwrite __esModule flag", function() {
|
||||
test("Re-export doesn't overwrite __esModule flag", function () {
|
||||
let code = 'export * from "./dep";';
|
||||
const depStub = {
|
||||
__esModule: false,
|
||||
@@ -11,7 +11,7 @@ test("Re-export doesn't overwrite __esModule flag", function() {
|
||||
module: {
|
||||
exports: {},
|
||||
},
|
||||
require: function(id) {
|
||||
require: function (id) {
|
||||
if (id === "./dep") return depStub;
|
||||
return require(id);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user