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

109 lines
1.3 KiB
Plaintext
Raw Normal View History

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`empty_lines.js 1`] = `
"switch (foo) {
case \\"bar\\":
doSomething();
case \\"baz\\":
doOtherThing();
}
switch (foo) {
case \\"bar\\":
doSomething();
case \\"baz\\":
doOtherThing();
}
switch (foo) {
case \\"bar\\":
doSomething();
case \\"baz\\":
doOtherThing();
}
switch (foo) {
case \\"bar\\":
doSomething();
case \\"baz\\":
doOtherThing();
}
switch (x) {
case y:
call();
break;
case z:
call();
break;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch (foo) {
case \\"bar\\":
doSomething();
case \\"baz\\":
doOtherThing();
}
switch (foo) {
case \\"bar\\":
doSomething();
case \\"baz\\":
doOtherThing();
}
switch (foo) {
case \\"bar\\":
doSomething();
case \\"baz\\":
doOtherThing();
}
switch (foo) {
case \\"bar\\":
doSomething();
case \\"baz\\":
doOtherThing();
}
switch (x) {
case y:
call();
break;
case z:
call();
break;
}
"
`;
exports[`empty_switch.js 1`] = `
"switch (1) { default:; }
switch (1) {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch (1) {
default:
}
switch (1) {
}
"
`;