Fix plugin resolution tests
This commit is contained in:
1 parent
c03fcfedb1
commit
2a298a3815
1 file changed
+4
-4
@@ -4,8 +4,8 @@ const runPrettier = require("../runPrettier");
|
||||
const EOL = "\n";
|
||||
|
||||
describe("automatically loads 'prettier-plugin-*'", () => {
|
||||
runPrettier("plugins/automatic", ["file.txt", "--parser=foo"]).test({
|
||||
stdout: "foo+contents" + EOL,
|
||||
runPrettier("plugins/automatic", ["file.txt", "--parser=bar"]).test({
|
||||
stdout: "bar+contents" + EOL,
|
||||
stderr: "",
|
||||
status: 0,
|
||||
write: []
|
||||
@@ -13,8 +13,8 @@ describe("automatically loads 'prettier-plugin-*'", () => {
|
||||
});
|
||||
|
||||
describe("automatically loads '@prettier/plugin-*'", () => {
|
||||
runPrettier("plugins/automatic", ["file.txt", "--parser=bar"]).test({
|
||||
stdout: "bar+contents" + EOL,
|
||||
runPrettier("plugins/automatic", ["file.txt", "--parser=foo"]).test({
|
||||
stdout: "foo+contents" + EOL,
|
||||
stderr: "",
|
||||
status: 0,
|
||||
write: []
|
||||
|
||||
Reference in new issue
Block a user