234 lines
5.8 KiB
Plaintext
234 lines
5.8 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`else.js-flow 1`] = `
|
|
"// Both functions below should be formatted exactly the same
|
|
|
|
function f() {
|
|
if (position)
|
|
return {name: pair};
|
|
else
|
|
return {name: pair.substring(0, position), value: pair.substring(position + 1)};
|
|
}
|
|
|
|
function f() {
|
|
if (position)
|
|
return {name: pair};
|
|
else
|
|
return {
|
|
name: pair.substring(0, position),
|
|
value: pair.substring(position + 1)
|
|
};
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// Both functions below should be formatted exactly the same
|
|
|
|
function f() {
|
|
if (position) return { name: pair };
|
|
else
|
|
return {
|
|
name: pair.substring(0, position),
|
|
value: pair.substring(position + 1)
|
|
};
|
|
}
|
|
|
|
function f() {
|
|
if (position) return { name: pair };
|
|
else
|
|
return {
|
|
name: pair.substring(0, position),
|
|
value: pair.substring(position + 1)
|
|
};
|
|
}
|
|
"
|
|
`;
|
|
|
|
exports[`else.js-typescript 1`] = `
|
|
"// Both functions below should be formatted exactly the same
|
|
|
|
function f() {
|
|
if (position)
|
|
return {name: pair};
|
|
else
|
|
return {name: pair.substring(0, position), value: pair.substring(position + 1)};
|
|
}
|
|
|
|
function f() {
|
|
if (position)
|
|
return {name: pair};
|
|
else
|
|
return {
|
|
name: pair.substring(0, position),
|
|
value: pair.substring(position + 1)
|
|
};
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
// Both functions below should be formatted exactly the same
|
|
|
|
function f() {
|
|
if (position) return { name: pair };
|
|
else
|
|
return {
|
|
name: pair.substring(0, position),
|
|
value: pair.substring(position + 1)
|
|
};
|
|
}
|
|
|
|
function f() {
|
|
if (position) return { name: pair };
|
|
else
|
|
return {
|
|
name: pair.substring(0, position),
|
|
value: pair.substring(position + 1)
|
|
};
|
|
}
|
|
"
|
|
`;
|
|
|
|
exports[`if_comments.js-flow 1`] = `
|
|
"async function f() {
|
|
if (untrackedChoice === 0) /* Cancel */ {
|
|
return null;
|
|
} else if (untrackedChoice === 1) /* Add */ {
|
|
await repository.addAll(Array.from(untrackedChanges.keys()));
|
|
shouldAmend = true;
|
|
} else if (untrackedChoice === 2) /* Allow Untracked */ {
|
|
allowUntracked = true;
|
|
}
|
|
}
|
|
|
|
async function f() {
|
|
if (untrackedChoice === 0)
|
|
/* Cancel */ {
|
|
return null;
|
|
}
|
|
else if (untrackedChoice === 1)
|
|
/* Add */ {
|
|
await repository.addAll(Array.from(untrackedChanges.keys()));
|
|
shouldAmend = true;
|
|
}
|
|
else if (untrackedChoice === 2)
|
|
/* Allow Untracked */ {
|
|
allowUntracked = true;
|
|
}
|
|
}
|
|
|
|
async function f() {
|
|
if (untrackedChoice === 0) {
|
|
/* Cancel */ return null;
|
|
} else if (untrackedChoice === 1) {
|
|
/* Add */ await repository.addAll(Array.from(untrackedChanges.keys()));
|
|
shouldAmend = true;
|
|
} else if (untrackedChoice === 2) {
|
|
/* Allow Untracked */ allowUntracked = true;
|
|
}
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
async function f() {
|
|
if (untrackedChoice === 0) {
|
|
/* Cancel */ return null;
|
|
} else if (untrackedChoice === 1) {
|
|
/* Add */ await repository.addAll(Array.from(untrackedChanges.keys()));
|
|
shouldAmend = true;
|
|
} else if (untrackedChoice === 2) {
|
|
/* Allow Untracked */ allowUntracked = true;
|
|
}
|
|
}
|
|
|
|
async function f() {
|
|
if (untrackedChoice === 0) {
|
|
/* Cancel */ return null;
|
|
} else if (untrackedChoice === 1) {
|
|
/* Add */ await repository.addAll(Array.from(untrackedChanges.keys()));
|
|
shouldAmend = true;
|
|
} else if (untrackedChoice === 2) {
|
|
/* Allow Untracked */ allowUntracked = true;
|
|
}
|
|
}
|
|
|
|
async function f() {
|
|
if (untrackedChoice === 0) {
|
|
/* Cancel */ return null;
|
|
} else if (untrackedChoice === 1) {
|
|
/* Add */ await repository.addAll(Array.from(untrackedChanges.keys()));
|
|
shouldAmend = true;
|
|
} else if (untrackedChoice === 2) {
|
|
/* Allow Untracked */ allowUntracked = true;
|
|
}
|
|
}
|
|
"
|
|
`;
|
|
|
|
exports[`if_comments.js-typescript 1`] = `
|
|
"async function f() {
|
|
if (untrackedChoice === 0) /* Cancel */ {
|
|
return null;
|
|
} else if (untrackedChoice === 1) /* Add */ {
|
|
await repository.addAll(Array.from(untrackedChanges.keys()));
|
|
shouldAmend = true;
|
|
} else if (untrackedChoice === 2) /* Allow Untracked */ {
|
|
allowUntracked = true;
|
|
}
|
|
}
|
|
|
|
async function f() {
|
|
if (untrackedChoice === 0)
|
|
/* Cancel */ {
|
|
return null;
|
|
}
|
|
else if (untrackedChoice === 1)
|
|
/* Add */ {
|
|
await repository.addAll(Array.from(untrackedChanges.keys()));
|
|
shouldAmend = true;
|
|
}
|
|
else if (untrackedChoice === 2)
|
|
/* Allow Untracked */ {
|
|
allowUntracked = true;
|
|
}
|
|
}
|
|
|
|
async function f() {
|
|
if (untrackedChoice === 0) {
|
|
/* Cancel */ return null;
|
|
} else if (untrackedChoice === 1) {
|
|
/* Add */ await repository.addAll(Array.from(untrackedChanges.keys()));
|
|
shouldAmend = true;
|
|
} else if (untrackedChoice === 2) {
|
|
/* Allow Untracked */ allowUntracked = true;
|
|
}
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
async function f() {
|
|
if (untrackedChoice === 0) {
|
|
/* Cancel */ return null;
|
|
} else if (untrackedChoice === 1) {
|
|
/* Add */ await repository.addAll(Array.from(untrackedChanges.keys()));
|
|
shouldAmend = true;
|
|
} else if (untrackedChoice === 2) {
|
|
/* Allow Untracked */ allowUntracked = true;
|
|
}
|
|
}
|
|
|
|
async function f() {
|
|
if (untrackedChoice === 0) {
|
|
/* Cancel */ return null;
|
|
} else if (untrackedChoice === 1) {
|
|
/* Add */ await repository.addAll(Array.from(untrackedChanges.keys()));
|
|
shouldAmend = true;
|
|
} else if (untrackedChoice === 2) {
|
|
/* Allow Untracked */ allowUntracked = true;
|
|
}
|
|
}
|
|
|
|
async function f() {
|
|
if (untrackedChoice === 0) {
|
|
/* Cancel */ return null;
|
|
} else if (untrackedChoice === 1) {
|
|
/* Add */ await repository.addAll(Array.from(untrackedChanges.keys()));
|
|
shouldAmend = true;
|
|
} else if (untrackedChoice === 2) {
|
|
/* Allow Untracked */ allowUntracked = true;
|
|
}
|
|
}
|
|
"
|
|
`;
|