prettier/tests/preserve_line/__snapshots__/jsfmt.spec.js.snap

124 lines
1.7 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`comments.js-flow 1`] = `
"function a() {
const a = 5; // comment
return a;
}
function a() {
const a = 5; /* comment */
return a;
}
function a() {
const a = 5; /* comment */ /* comment */
return a;
}
function a() {
const a = 5; /* comment */ /* comment */ // comment
return a;
}
function a() {
const a = 5; /* comment */ /* comment */ // comment
return a;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function a() {
const a = 5; // comment
return a;
}
function a() {
const a = 5; /* comment */
return a;
}
function a() {
const a = 5; /* comment */ /* comment */
return a;
}
function a() {
const a = 5; /* comment */ /* comment */ // comment
return a;
}
function a() {
const a = 5; /* comment */ /* comment */ // comment
return a;
}
"
`;
exports[`comments.js-typescript 1`] = `
"function a() {
const a = 5; // comment
return a;
}
function a() {
const a = 5; /* comment */
return a;
}
function a() {
const a = 5; /* comment */ /* comment */
return a;
}
function a() {
const a = 5; /* comment */ /* comment */ // comment
return a;
}
function a() {
const a = 5; /* comment */ /* comment */ // comment
return a;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
function a() {
const a = 5; // comment
return a;
}
function a() {
const a = 5; /* comment */
return a;
}
function a() {
const a = 5; /* comment */ /* comment */
return a;
}
function a() {
const a = 5; /* comment */ /* comment */ // comment
return a;
}
function a() {
const a = 5; /* comment */ /* comment */ // comment
return a;
}
"
`;