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

61 lines
1004 B
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`after-key.js - flow-verify 1`] = `
let a = {
a /* comment */: () => 1
};
let a = {
"a" /* comment */: () => 1
};
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
let a = {
a /* comment */: () => 1
};
let a = {
a /* comment */: () => 1
};
`;
exports[`comment.js - flow-verify 1`] = `
o = {
name:
// Comment A
// Comment B
(({id: type}: any): CreativeConcept),
};
o = {
name: // Comment A
// Comment B
(({ id: type }: any): CreativeConcept)
};
o = {
name: // Comment B // Comment A
(({ id: type }: any): CreativeConcept)
};
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
o = {
name:
// Comment A
// Comment B
(({ id: type }: any): CreativeConcept)
};
o = {
// Comment A
name:
// Comment B
(({ id: type }: any): CreativeConcept)
};
o = {
// Comment B // Comment A
name: (({ id: type }: any): CreativeConcept)
};
`;