Files
test-repo/tests_integration/__tests__/plugin-preprocess.js
T

15 lines
368 B
JavaScript
Raw Normal View History

2018-01-09 14:27:26 +01:00
"use strict";
const runPrettier = require("../runPrettier");
2018-05-28 21:46:55 +10:00
const EOL = "\n";
2018-01-09 14:27:26 +01:00
describe("parser preprocess function is used to reshape input text", () => {
runPrettier("plugins/preprocess", ["*.foo", "--plugin=./plugin"], {
2020-03-21 22:07:52 +02:00
ignoreLineEndings: true,
}).test({
2018-01-22 19:20:50 +01:00
stdout: "preprocessed:contents" + EOL,
2018-01-09 14:27:26 +01:00
stderr: "",
status: 0,
2020-03-21 22:07:52 +02:00
write: [],
2018-01-09 14:27:26 +01:00
});
});