2017-09-08 10:08:19 +03:00
|
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
2019-11-02 17:56:26 +03:00
|
|
|
|
exports[`apply editorconfig for stdin-filepath with nonexistent directory (stderr) 1`] = `""`;
|
|
|
|
|
|
|
|
|
|
exports[`apply editorconfig for stdin-filepath with nonexistent directory (stdout) 1`] = `
|
|
|
|
|
"function f() {
|
|
|
|
|
console.log(\\"should be indented with a tab\\")
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`apply editorconfig for stdin-filepath with nonexistent directory (write) 1`] = `Array []`;
|
|
|
|
|
|
|
|
|
|
exports[`apply editorconfig for stdin-filepath with nonexistent file (stderr) 1`] = `""`;
|
|
|
|
|
|
|
|
|
|
exports[`apply editorconfig for stdin-filepath with nonexistent file (stdout) 1`] = `
|
|
|
|
|
"function f() {
|
|
|
|
|
console.log(\\"should be indented with a tab\\")
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`apply editorconfig for stdin-filepath with nonexistent file (write) 1`] = `Array []`;
|
|
|
|
|
|
|
|
|
|
exports[`don’t apply editorconfig outside project for stdin-filepath with nonexistent directory (stderr) 1`] = `""`;
|
|
|
|
|
|
|
|
|
|
exports[`don’t apply editorconfig outside project for stdin-filepath with nonexistent directory (stdout) 1`] = `
|
|
|
|
|
"function f() {
|
|
|
|
|
console.log(\\"should be indented with 2 spaces\\")
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`don’t apply editorconfig outside project for stdin-filepath with nonexistent directory (write) 1`] = `Array []`;
|
|
|
|
|
|
2017-10-02 19:08:34 +03:00
|
|
|
|
exports[`format correctly if stdin content compatible with stdin-filepath (stderr) 1`] = `""`;
|
|
|
|
|
|
|
|
|
|
exports[`format correctly if stdin content compatible with stdin-filepath (stdout) 1`] = `
|
2017-09-08 10:08:19 +03:00
|
|
|
|
".name {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
`;
|
|
|
|
|
|
2017-10-02 19:08:34 +03:00
|
|
|
|
exports[`format correctly if stdin content compatible with stdin-filepath (write) 1`] = `Array []`;
|
2017-09-08 10:08:19 +03:00
|
|
|
|
|
2019-11-02 17:56:26 +03:00
|
|
|
|
exports[`gracefully handle stdin-filepath with nonexistent directory (stderr) 1`] = `""`;
|
|
|
|
|
|
|
|
|
|
exports[`gracefully handle stdin-filepath with nonexistent directory (stdout) 1`] = `
|
|
|
|
|
".name {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
"
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
exports[`gracefully handle stdin-filepath with nonexistent directory (write) 1`] = `Array []`;
|
|
|
|
|
|
2017-12-31 20:08:09 +03:00
|
|
|
|
exports[`output file as-is if stdin-filepath matched patterns in ignore-path (stderr) 1`] = `""`;
|
2017-11-23 13:54:04 +03:00
|
|
|
|
|
2017-12-31 20:08:09 +03:00
|
|
|
|
exports[`output file as-is if stdin-filepath matched patterns in ignore-path (write) 1`] = `Array []`;
|
2017-11-23 13:54:04 +03:00
|
|
|
|
|
2017-10-02 19:08:34 +03:00
|
|
|
|
exports[`throw error if stdin content incompatible with stdin-filepath (stderr) 1`] = `
|
2019-02-20 16:39:25 +03:00
|
|
|
|
"[error] abc.js: SyntaxError: Unexpected token (1:1)
|
2017-10-14 04:17:01 +03:00
|
|
|
|
[error] > 1 | .name { display: none; }
|
|
|
|
|
[error] | ^
|
2017-09-08 10:08:19 +03:00
|
|
|
|
"
|
|
|
|
|
`;
|
2017-10-02 19:08:34 +03:00
|
|
|
|
|
|
|
|
|
exports[`throw error if stdin content incompatible with stdin-filepath (stdout) 1`] = `""`;
|
|
|
|
|
|
|
|
|
|
exports[`throw error if stdin content incompatible with stdin-filepath (write) 1`] = `Array []`;
|