2017-02-22 00:59:19 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2017-03-22 00:47:23 +03:00
|
|
|
exports[`else.js-flow 1`] = `
|
2017-03-18 00:02:35 +03:00
|
|
|
"// 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)
|
|
|
|
};
|
|
|
|
}
|
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-03-22 00:47:23 +03:00
|
|
|
exports[`else.js-typescript 1`] = `
|
2017-03-18 00:02:35 +03:00
|
|
|
"// 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)
|
|
|
|
};
|
|
|
|
}
|
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-03-22 00:47:23 +03:00
|
|
|
exports[`if_comments.js-flow 1`] = `
|
2017-02-13 17:55:54 +03:00
|
|
|
"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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-03-09 00:18:13 +03:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-03-22 00:47:23 +03:00
|
|
|
exports[`if_comments.js-typescript 1`] = `
|
2017-03-09 00:18:13 +03:00
|
|
|
"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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-02-13 17:55:54 +03:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"
|
|
|
|
`;
|