prettier/tests_integration/__tests__/__snapshots__/write.js.snap

38 lines
836 B
Plaintext
Raw Normal View History

2017-09-03 16:31:33 +03:00
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`do not write file with --write + formatted file (stderr) 1`] = `""`;
exports[`do not write file with --write + formatted file (stdout) 1`] = `
"formatted.js 0ms
"
`;
exports[`do not write file with --write + invalid file (stderr) 1`] = `
2017-12-02 01:39:10 +03:00
"[error] invalid.js: SyntaxError: Unexpected token, expected \\";\\" (1:6)
[error] > 1 | this is invalid!
[error] | ^
2017-09-03 16:31:33 +03:00
"
`;
exports[`do not write file with --write + invalid file (stdout) 1`] = `
2017-10-06 06:12:32 +03:00
"
"
`;
exports[`write file with --write + unformatted file (stderr) 1`] = `""`;
exports[`write file with --write + unformatted file (stdout) 1`] = `
"unformatted.js 0ms
"
`;
exports[`write file with --write + unformatted file (write) 1`] = `
2017-09-03 16:31:33 +03:00
Array [
Object {
"content": "var x = 1;
2017-09-03 16:31:33 +03:00
",
"filename": "unformatted.js",
2017-09-03 16:31:33 +03:00
},
]
`;