Skip to content

Commit

Permalink
Chore: Rename test files to keep them sequential
Browse files Browse the repository at this point in the history
  • Loading branch information
BPScott authored and not-an-aardvark committed Oct 1, 2018
1 parent 3af422c commit d38ea52
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 43 deletions.
18 changes: 18 additions & 0 deletions test/invalid/12.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CODE:
var foo ='';var bar ='';var baz ='';

OUTPUT:
var foo = "";
var bar = "";
var baz = "";

OPTIONS:
[]

ERRORS:
[
{
message: 'Replace `\'\';var·bar·=\'\';var·baz·=\'\'` with `·"";⏎var·bar·=·"";⏎var·baz·=·""`',
line: 1, column: 10, endLine: 1, endColumn: 36,
},
]
11 changes: 8 additions & 3 deletions test/invalid/13.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
CODE:
var foo ='';var bar ='';var baz ='';
var foo ='';var bar ='';
var baz ='';

OUTPUT:
var foo = "";
Expand All @@ -12,7 +13,11 @@ OPTIONS:
ERRORS:
[
{
message: 'Replace `\'\';var·bar·=\'\';var·baz·=\'\'` with `·"";⏎var·bar·=·"";⏎var·baz·=·""`',
line: 1, column: 10, endLine: 1, endColumn: 36,
message: 'Replace `\'\';var·bar·=\'\'` with `·"";⏎var·bar·=·""`',
line: 1, column: 10, endLine: 1, endColumn: 24,
},
{
message: 'Replace `\'\'` with `·""`',
line: 2, column: 10, endLine: 2, endColumn: 12,
},
]
15 changes: 4 additions & 11 deletions test/invalid/14.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
CODE:
var foo ='';var bar ='';
var baz ='';
var foo = { "bar": "", "baz": "" };

OUTPUT:
var foo = "";
var bar = "";
var baz = "";
var foo = { bar: "", baz: "" };

OPTIONS:
[]

ERRORS:
[
{
message: 'Replace `\'\';var·bar·=\'\'` with `·"";⏎var·bar·=·""`',
line: 1, column: 10, endLine: 1, endColumn: 24,
},
{
message: 'Replace `\'\'` with `·""`',
line: 2, column: 10, endLine: 2, endColumn: 12,
message: 'Replace `"bar":·"",·"baz"` with `bar:·"",·baz`',
line: 1, column: 13, endLine: 1, endColumn: 29,
},
]
9 changes: 4 additions & 5 deletions test/invalid/15.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
CODE:
var foo = { "bar": "", "baz": "" };

var foo = ''
OUTPUT:
var foo = { bar: "", baz: "" };
var foo = "";

OPTIONS:
[]

ERRORS:
[
{
message: 'Replace `"bar":·"",·"baz"` with `bar:·"",·baz`',
line: 1, column: 13, endLine: 1, endColumn: 29,
message: 'Replace `\'\'` with `"";⏎`',
line: 1, column: 11, endLine: 1, endColumn: 13,
},
]
6 changes: 3 additions & 3 deletions test/invalid/16.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CODE:
var foo = ''
var foo = "";
OUTPUT:
var foo = "";

Expand All @@ -9,7 +9,7 @@ OPTIONS:
ERRORS:
[
{
message: 'Replace `\'\'` with `"";⏎`',
line: 1, column: 11, endLine: 1, endColumn: 13,
message: 'Insert `⏎`',
line: 1, column: 14, endLine: 1, endColumn: 14,
},
]
6 changes: 4 additions & 2 deletions test/invalid/17.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
CODE:

var foo = "";

OUTPUT:
var foo = "";

Expand All @@ -9,7 +11,7 @@ OPTIONS:
ERRORS:
[
{
message: 'Insert `⏎`',
line: 1, column: 14, endLine: 1, endColumn: 14,
message: 'Delete `⏎`',
line: 1, column: 1, endLine: 2, endColumn: 1,
},
]
17 changes: 0 additions & 17 deletions test/invalid/18.txt

This file was deleted.

4 changes: 2 additions & 2 deletions test/prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ ruleTester.run('prettier', rule, {
'10',
'11-a',
'11-b',
'12',
'13',
'14',
'15',
'16',
'17',
'18'
'17'
].map(loadInvalidFixture)
});

Expand Down

0 comments on commit d38ea52

Please sign in to comment.