parent
bef646d4a4
commit
b67fd8e155
|
@ -30,7 +30,13 @@ function genericPrint(path, options, print) {
|
|||
|
||||
switch (n.type) {
|
||||
case "css-root": {
|
||||
return concat([printNodeSequence(path, options, print), hardline]);
|
||||
const nodes = printNodeSequence(path, options, print);
|
||||
|
||||
if (nodes.parts.length) {
|
||||
return concat([nodes, hardline]);
|
||||
}
|
||||
|
||||
return nodes;
|
||||
}
|
||||
case "css-comment": {
|
||||
if (n.raws.content) {
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`empty-file.css 1`] = `
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
`;
|
||||
|
||||
exports[`single-space.css 1`] = `
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
`;
|
|
@ -0,0 +1 @@
|
|||
run_spec(__dirname, ["css"]);
|
|
@ -0,0 +1 @@
|
|||
|
|
@ -6,3 +6,13 @@ exports[`empty.js 1`] = `
|
|||
|
||||
|
||||
`;
|
||||
|
||||
exports[`empty-file.js 1`] = `
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
`;
|
||||
|
||||
exports[`single-space.js 1`] = `
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
`;
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
|
Loading…
Reference in New Issue