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

122 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 (a) {
case b:
if (1) {};
c;
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 (a) {
case b:
if (1) {
}
c;
}
`;
exports[`empty_switch.js 1`] = `
switch (1) { default:; }
switch (1) {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch (1) {
default:
}
switch (1) {
}
`;