Bump prettier@2.2.1 (#12633)

This commit is contained in:
Brian Ng
2021-01-14 13:10:47 -06:00
committed by GitHub
parent 6e9a174e7f
commit fec4a132ad
4 changed files with 46 additions and 46 deletions

View File

@@ -167,16 +167,17 @@ describe("api", function () {
babelrc: false,
};
Object.freeze(options);
transformFile(__dirname + "/fixtures/api/file.js", options, function (
err,
res,
) {
if (err) return done(err);
expect(res.code).toBe("foo();");
// keep user options untouched
expect(options).toEqual({ babelrc: false });
done();
});
transformFile(
__dirname + "/fixtures/api/file.js",
options,
function (err, res) {
if (err) return done(err);
expect(res.code).toBe("foo();");
// keep user options untouched
expect(options).toEqual({ babelrc: false });
done();
},
);
});
it("transformFileSync", function () {