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