2017-09-10 19:21:56 +03:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
const path = require("path");
|
|
|
|
const runPrettier = require("../runPrettier");
|
|
|
|
|
2017-10-02 19:08:34 +03:00
|
|
|
describe("support absolute filename", () => {
|
|
|
|
runPrettier("cli/ignore-absolute-path", [
|
2017-09-10 19:21:56 +03:00
|
|
|
path.resolve(__dirname, "../cli/ignore-absolute-path/ignored/module.js"),
|
|
|
|
path.resolve(__dirname, "../cli/ignore-absolute-path/depth1/ignored/*.js"),
|
|
|
|
path.resolve(__dirname, "../cli/ignore-absolute-path/regular-module.js"),
|
|
|
|
"-l"
|
2017-10-02 19:08:34 +03:00
|
|
|
]).test({
|
|
|
|
status: 1
|
|
|
|
});
|
2017-09-10 19:21:56 +03:00
|
|
|
});
|