Skip to content

Commit

Permalink
prettierx: break out tests/ternaries/crewdress.js
Browse files Browse the repository at this point in the history
into: tests/ternary-object-expressions

(not tested with paren-spacing as this would be meaningless)
  • Loading branch information
brodybits committed Jan 4, 2021
1 parent 78cdfd1 commit 2f12f47
Show file tree
Hide file tree
Showing 8 changed files with 250 additions and 243 deletions.
136 changes: 0 additions & 136 deletions tests/ternaries/__snapshots__/jsfmt.spec.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -172,142 +172,6 @@ room = room.map((row, rowIndex) =>
================================================================================
`;

exports[`crewdress.js 1`] = `
====================================options=====================================
alignTernaryLines: true
parsers: ["babel", "babel-flow", "flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
let isSpace = false
const dress = isSpace ? {
spaceSuit: 3,
oxygenCylinders: 6
} : {
shirts: 3,
paints: 3
}
=====================================output=====================================
let isSpace = false;
const dress = isSpace
? {
spaceSuit: 3,
oxygenCylinders: 6,
}
: {
shirts: 3,
paints: 3,
};
================================================================================
`;

exports[`crewdress.js 2`] = `
====================================options=====================================
alignTernaryLines: true
parsers: ["babel", "babel-flow", "flow", "typescript"]
printWidth: 80
tabWidth: 4
| printWidth
=====================================input======================================
let isSpace = false
const dress = isSpace ? {
spaceSuit: 3,
oxygenCylinders: 6
} : {
shirts: 3,
paints: 3
}
=====================================output=====================================
let isSpace = false;
const dress = isSpace
? {
spaceSuit: 3,
oxygenCylinders: 6,
}
: {
shirts: 3,
paints: 3,
};
================================================================================
`;

exports[`crewdress.js 3`] = `
====================================options=====================================
alignTernaryLines: true
parsers: ["babel", "babel-flow", "flow", "typescript"]
printWidth: 80
useTabs: true
| printWidth
=====================================input======================================
let isSpace = false
const dress = isSpace ? {
spaceSuit: 3,
oxygenCylinders: 6
} : {
shirts: 3,
paints: 3
}
=====================================output=====================================
let isSpace = false;
const dress = isSpace
? {
spaceSuit: 3,
oxygenCylinders: 6,
}
: {
shirts: 3,
paints: 3,
};
================================================================================
`;

exports[`crewdress.js 4`] = `
====================================options=====================================
alignTernaryLines: true
parsers: ["babel", "babel-flow", "flow", "typescript"]
printWidth: 80
tabWidth: 4
useTabs: true
| printWidth
=====================================input======================================
let isSpace = false
const dress = isSpace ? {
spaceSuit: 3,
oxygenCylinders: 6
} : {
shirts: 3,
paints: 3
}
=====================================output=====================================
let isSpace = false;
const dress = isSpace
? {
spaceSuit: 3,
oxygenCylinders: 6,
}
: {
shirts: 3,
paints: 3,
};
================================================================================
`;

exports[`func-call.js 1`] = `
====================================options=====================================
alignTernaryLines: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,77 +89,6 @@ room = room.map((row, rowIndex) =>
================================================================================
`;

exports[`crewdress.js 1`] = `
====================================options=====================================
alignTernaryLines: false
arrowParens: "avoid"
parsers: ["babel", "babel-flow", "flow", "typescript"]
printWidth: 80
trailingComma: "none"
| printWidth
=====================================input======================================
let isSpace = false
const dress = isSpace ? {
spaceSuit: 3,
oxygenCylinders: 6
} : {
shirts: 3,
paints: 3
}
=====================================output=====================================
let isSpace = false;
const dress = isSpace
? {
spaceSuit: 3,
oxygenCylinders: 6
}
: {
shirts: 3,
paints: 3
};
================================================================================
`;

exports[`crewdress.js 2`] = `
====================================options=====================================
alignTernaryLines: false
arrowParens: "avoid"
parsers: ["babel", "babel-flow", "flow", "typescript"]
printWidth: 80
tabWidth: 4
trailingComma: "none"
| printWidth
=====================================input======================================
let isSpace = false
const dress = isSpace ? {
spaceSuit: 3,
oxygenCylinders: 6
} : {
shirts: 3,
paints: 3
}
=====================================output=====================================
let isSpace = false;
const dress = isSpace
? {
spaceSuit: 3,
oxygenCylinders: 6
}
: {
shirts: 3,
paints: 3
};
================================================================================
`;

exports[`func-call.js 1`] = `
====================================options=====================================
alignTernaryLines: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,42 +45,6 @@ room = room.map( ( row, rowIndex ) =>
================================================================================
`;

exports[`crewdress.js 1`] = `
====================================options=====================================
alignTernaryLines: true
arrowParens: "avoid"
parenSpacing: true
parsers: ["babel", "babel-flow", "flow", "typescript"]
printWidth: 80
trailingComma: "none"
| printWidth
=====================================input======================================
let isSpace = false
const dress = isSpace ? {
spaceSuit: 3,
oxygenCylinders: 6
} : {
shirts: 3,
paints: 3
}
=====================================output=====================================
let isSpace = false;
const dress = isSpace
? {
spaceSuit: 3,
oxygenCylinders: 6
}
: {
shirts: 3,
paints: 3
};
================================================================================
`;

exports[`func-call.js 1`] = `
====================================options=====================================
alignTernaryLines: true
Expand Down

0 comments on commit 2f12f47

Please sign in to comment.