-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathstdin-filepath.js.snap
More file actions
85 lines (59 loc) · 2.92 KB
/
stdin-filepath.js.snap
File metadata and controls
85 lines (59 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`apply editorconfig for stdin-filepath with a deep path (stderr) 1`] = `""`;
exports[`apply editorconfig for stdin-filepath with a deep path (stderr) 2`] = `""`;
exports[`apply editorconfig for stdin-filepath with a deep path (stdout) 1`] = `
"function f() {
console.log("should be indented with a tab")
}"
`;
exports[`apply editorconfig for stdin-filepath with a deep path (stdout) 2`] = `
"function f() {
console.log("should be indented with a tab")
}"
`;
exports[`apply editorconfig for stdin-filepath with a deep path (write) 1`] = `[]`;
exports[`apply editorconfig for stdin-filepath with a deep path (write) 2`] = `[]`;
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`] = `[]`;
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`] = `[]`;
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`] = `[]`;
exports[`format correctly if stdin content compatible with stdin-filepath (stderr) 1`] = `""`;
exports[`format correctly if stdin content compatible with stdin-filepath (stdout) 1`] = `
".name {
display: none;
}"
`;
exports[`format correctly if stdin content compatible with stdin-filepath (write) 1`] = `[]`;
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`] = `[]`;
exports[`output file as-is if stdin-filepath matched patterns in ignore-path (stderr) 1`] = `""`;
exports[`output file as-is if stdin-filepath matched patterns in ignore-path (write) 1`] = `[]`;
exports[`throw error if stdin content incompatible with stdin-filepath (stderr) 1`] = `
"[error] SyntaxError: Unexpected token (1:1)
[error] > 1 | .name { display: none; }
[error] | ^"
`;
exports[`throw error if stdin content incompatible with stdin-filepath (stdout) 1`] = `""`;
exports[`throw error if stdin content incompatible with stdin-filepath (write) 1`] = `[]`;