2017-02-22 00:59:19 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2017-03-22 03:38:28 +03:00
|
|
|
exports[`else.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
// Both functions below should be formatted exactly the same
|
2017-03-18 00:02:35 +03:00
|
|
|
|
|
|
|
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-04-12 23:41:51 +03:00
|
|
|
|
2017-03-18 00:02:35 +03:00
|
|
|
`;
|
|
|
|
|
2017-03-22 03:38:28 +03:00
|
|
|
exports[`if_comments.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
async function f() {
|
2017-02-13 17:55:54 +03:00
|
|
|
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-09-08 20:12:10 +03:00
|
|
|
async function f() {
|
|
|
|
if (untrackedChoice === 0) /* Cancel */
|
|
|
|
null;
|
|
|
|
else if (untrackedChoice === 1) /* Add */
|
|
|
|
shouldAmend = true;
|
|
|
|
else if (untrackedChoice === 2) /* Allow Untracked */
|
|
|
|
allowUntracked = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
async function f() {
|
|
|
|
if (untrackedChoice === 0) /* Cancel */ // Cancel
|
|
|
|
null;
|
|
|
|
else if (untrackedChoice === 1) /* Add */ // Add
|
|
|
|
shouldAmend = true;
|
|
|
|
else if (untrackedChoice === 2) /* Allow Untracked */ // 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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-09-08 20:12:10 +03:00
|
|
|
async function f() {
|
|
|
|
if (untrackedChoice === 0)
|
|
|
|
/* Cancel */
|
|
|
|
null;
|
|
|
|
else if (untrackedChoice === 1)
|
|
|
|
/* Add */
|
|
|
|
shouldAmend = true;
|
|
|
|
else if (untrackedChoice === 2)
|
|
|
|
/* Allow Untracked */
|
|
|
|
allowUntracked = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
async function f() {
|
|
|
|
if (untrackedChoice === 0)
|
|
|
|
/* Cancel */ // Cancel
|
|
|
|
null;
|
|
|
|
else if (untrackedChoice === 1)
|
|
|
|
/* Add */ // Add
|
|
|
|
shouldAmend = true;
|
|
|
|
else if (untrackedChoice === 2)
|
|
|
|
/* Allow Untracked */ // 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;
|
|
|
|
}
|
|
|
|
}
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2017-02-13 17:55:54 +03:00
|
|
|
`;
|
2017-04-10 21:05:10 +03:00
|
|
|
|
|
|
|
exports[`trailing_comment.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
if (code === 92 /* '\\' */) {}
|
|
|
|
if (code === 92 /* '\\' */ /* '\\' */) {}
|
2017-04-10 21:05:10 +03:00
|
|
|
|
2017-04-12 23:41:51 +03:00
|
|
|
if (code === 92) /* '\\' */ {}
|
|
|
|
if (code === 92) { /* '\\' */ }
|
2017-04-13 03:26:44 +03:00
|
|
|
|
|
|
|
if (
|
|
|
|
1
|
|
|
|
// Comment
|
|
|
|
) {
|
|
|
|
a;
|
|
|
|
}
|
2017-04-10 21:05:10 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-04-12 23:41:51 +03:00
|
|
|
if (code === 92 /* '\\' */) {
|
2017-04-10 21:05:10 +03:00
|
|
|
}
|
2017-04-12 23:41:51 +03:00
|
|
|
if (code === 92 /* '\\' */ /* '\\' */) {
|
2017-04-10 21:05:10 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
if (code === 92) {
|
2017-04-12 23:41:51 +03:00
|
|
|
/* '\\' */
|
2017-04-10 21:05:10 +03:00
|
|
|
}
|
|
|
|
if (code === 92) {
|
2017-04-12 23:41:51 +03:00
|
|
|
/* '\\' */
|
2017-04-10 21:05:10 +03:00
|
|
|
}
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2017-04-13 03:26:44 +03:00
|
|
|
if (
|
|
|
|
1
|
|
|
|
// Comment
|
|
|
|
) {
|
|
|
|
a;
|
|
|
|
}
|
|
|
|
|
2017-04-10 21:05:10 +03:00
|
|
|
`;
|