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

38 lines
798 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 + formated file (stderr) 1`] = `""`;
exports[`do not write file with --write + formated file (stdout) 1`] = `
"formated.js 0ms
"
`;
exports[`do not write file with --write + invalid file (stderr) 1`] = `
2017-09-03 16:31:33 +03:00
"invalid.js: SyntaxError: Unexpected token, expected ; (1:6)
> 1 | this is invalid!
| ^
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 + unformated file (stderr) 1`] = `""`;
exports[`write file with --write + unformated file (stdout) 1`] = `
"unformated.js 0ms
"
`;
exports[`write file with --write + unformated 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": "unformated.js",
},
]
`;