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

106 lines
1.8 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`class.js 1`] = `
class A {
method() {
var x = 1;
while(typeof x == "number" || typeof x == "string") {
x = x + 1;
if (true) x = "";
}
var z:number = x;
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class A {
method() {
var x = 1;
while (typeof x == "number" || typeof x == "string") {
x = x + 1;
if (true) x = "";
}
var z: number = x;
}
}
`;
exports[`class.js 2`] = `
class A {
method() {
var x = 1;
while(typeof x == "number" || typeof x == "string") {
x = x + 1;
if (true) x = "";
}
var z:number = x;
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
class A {
method() {
var x = 1;
while (typeof x == "number" || typeof x == "string") {
x = x + 1;
if (true) x = "";
}
var z: number = x;
}
}
`;
exports[`nested-functions.spec.js 1`] = `
const c = () => {};
function a() {
return function b() {
return () => {
return function() {
return c;
}
}
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const c = () => {};
function a() {
return function b() {
return () => {
return function() {
return c;
};
};
};
}
`;
exports[`nested-functions.spec.js 2`] = `
const c = () => {};
function a() {
return function b() {
return () => {
return function() {
return c;
}
}
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const c = () => {};
function a() {
return function b() {
return () => {
return function() {
return c;
};
};
};
}
`;