Fix typo in test files (`*formated` -> `*formatted`) (#2982)
* Fix typo in test files Signed-off-by: Joern Bernhardt <jb@campudus.com> * Rename cursot-offset.js to cursor-offset.js Signed-off-by: Joern Bernhardt <jb@campudus.com>master
parent
50f3e646c7
commit
3c00979530
|
@ -4,7 +4,7 @@ exports[`no file diffs with --list-different + formatted file (stderr) 1`] = `""
|
|||
|
||||
exports[`no file diffs with --list-different + formatted file (stderr) 2`] = `""`;
|
||||
|
||||
exports[`no file diffs with --list-different + formatted file (stdout) 1`] = `"formated.js"`;
|
||||
exports[`no file diffs with --list-different + formatted file (stdout) 1`] = `"formatted.js"`;
|
||||
|
||||
exports[`no file diffs with --list-different + formatted file (stdout) 2`] = `""`;
|
||||
|
||||
|
@ -17,12 +17,12 @@ exports[`output with --list-different + unformatted differs when piped (stderr)
|
|||
exports[`output with --list-different + unformatted differs when piped (stderr) 2`] = `""`;
|
||||
|
||||
exports[`output with --list-different + unformatted differs when piped (stdout) 1`] = `
|
||||
"unformated.jsunformated.js
|
||||
"unformatted.jsunformatted.js
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`output with --list-different + unformatted differs when piped (stdout) 2`] = `
|
||||
"unformated.js
|
||||
"unformatted.js
|
||||
"
|
||||
`;
|
||||
|
||||
|
@ -31,7 +31,7 @@ Array [
|
|||
Object {
|
||||
"content": "var x = 1;
|
||||
",
|
||||
"filename": "unformated.js",
|
||||
"filename": "unformatted.js",
|
||||
},
|
||||
]
|
||||
`;
|
||||
|
@ -41,7 +41,7 @@ Array [
|
|||
Object {
|
||||
"content": "var x = 1;
|
||||
",
|
||||
"filename": "unformated.js",
|
||||
"filename": "unformatted.js",
|
||||
},
|
||||
]
|
||||
`;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`do not write file with --write + formated file (stderr) 1`] = `""`;
|
||||
exports[`do not write file with --write + formatted file (stderr) 1`] = `""`;
|
||||
|
||||
exports[`do not write file with --write + formated file (stdout) 1`] = `
|
||||
"formated.js 0ms
|
||||
exports[`do not write file with --write + formatted file (stdout) 1`] = `
|
||||
"formatted.js 0ms
|
||||
"
|
||||
`;
|
||||
|
||||
|
@ -19,19 +19,19 @@ exports[`do not write file with --write + invalid file (stdout) 1`] = `
|
|||
"
|
||||
`;
|
||||
|
||||
exports[`write file with --write + unformated file (stderr) 1`] = `""`;
|
||||
exports[`write file with --write + unformatted file (stderr) 1`] = `""`;
|
||||
|
||||
exports[`write file with --write + unformated file (stdout) 1`] = `
|
||||
"unformated.js 0ms
|
||||
exports[`write file with --write + unformatted file (stdout) 1`] = `
|
||||
"unformatted.js 0ms
|
||||
"
|
||||
`;
|
||||
|
||||
exports[`write file with --write + unformated file (write) 1`] = `
|
||||
exports[`write file with --write + unformatted file (write) 1`] = `
|
||||
Array [
|
||||
Object {
|
||||
"content": "var x = 1;
|
||||
",
|
||||
"filename": "unformated.js",
|
||||
"filename": "unformatted.js",
|
||||
},
|
||||
]
|
||||
`;
|
||||
|
|
|
@ -5,7 +5,7 @@ const runPrettier = require("../runPrettier");
|
|||
describe("output with --list-different + unformatted differs when piped", () => {
|
||||
const result0 = runPrettier(
|
||||
"cli/write",
|
||||
["--write", "--list-different", "--no-color", "unformated.js"],
|
||||
["--write", "--list-different", "--no-color", "unformatted.js"],
|
||||
{ stdoutIsTTY: true }
|
||||
).test({
|
||||
status: 1
|
||||
|
@ -13,7 +13,7 @@ describe("output with --list-different + unformatted differs when piped", () =>
|
|||
|
||||
const result1 = runPrettier(
|
||||
"cli/write",
|
||||
["--write", "--list-different", "--no-color", "unformated.js"],
|
||||
["--write", "--list-different", "--no-color", "unformatted.js"],
|
||||
{ stdoutIsTTY: false }
|
||||
).test({
|
||||
status: 1
|
||||
|
@ -26,7 +26,7 @@ describe("output with --list-different + unformatted differs when piped", () =>
|
|||
describe("no file diffs with --list-different + formatted file", () => {
|
||||
const result0 = runPrettier(
|
||||
"cli/write",
|
||||
["--write", "--list-different", "--no-color", "formated.js"],
|
||||
["--write", "--list-different", "--no-color", "formatted.js"],
|
||||
{ stdoutIsTTY: true }
|
||||
).test({
|
||||
status: 0
|
||||
|
@ -34,7 +34,7 @@ describe("no file diffs with --list-different + formatted file", () => {
|
|||
|
||||
const result1 = runPrettier(
|
||||
"cli/write",
|
||||
["--write", "--list-different", "--no-color", "formated.js"],
|
||||
["--write", "--list-different", "--no-color", "formatted.js"],
|
||||
{ stdoutIsTTY: false }
|
||||
).test({
|
||||
status: 0
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
|
||||
const runPrettier = require("../runPrettier");
|
||||
|
||||
describe("write file with --write + unformated file", () => {
|
||||
runPrettier("cli/write", ["--write", "unformated.js"]).test({
|
||||
describe("write file with --write + unformatted file", () => {
|
||||
runPrettier("cli/write", ["--write", "unformatted.js"]).test({
|
||||
status: 0
|
||||
});
|
||||
});
|
||||
|
||||
describe("do not write file with --write + formated file", () => {
|
||||
runPrettier("cli/write", ["--write", "formated.js"]).test({
|
||||
describe("do not write file with --write + formatted file", () => {
|
||||
runPrettier("cli/write", ["--write", "formatted.js"]).test({
|
||||
write: [],
|
||||
status: 0
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue