2017-07-11 16:33:46 +03:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const runPrettier = require("../runPrettier");
|
|
|
|
|
2017-10-02 19:08:34 +03:00
|
|
|
describe("ignore path", () => {
|
|
|
|
runPrettier("cli/ignore-path", [
|
2017-07-11 16:33:46 +03:00
|
|
|
"**/*.js",
|
|
|
|
"--ignore-path",
|
|
|
|
".gitignore",
|
|
|
|
"-l"
|
2017-10-02 19:08:34 +03:00
|
|
|
]).test({
|
|
|
|
status: 1
|
|
|
|
});
|
2017-07-11 16:33:46 +03:00
|
|
|
});
|
|
|
|
|
2017-10-02 19:08:34 +03:00
|
|
|
describe("support .prettierignore", () => {
|
|
|
|
runPrettier("cli/ignore-path", ["**/*.js", "-l"]).test({
|
|
|
|
status: 1
|
|
|
|
});
|
2017-07-11 16:33:46 +03:00
|
|
|
});
|