@@ -71,20 +71,38 @@ ruleTester.run('test-case-property-ordering', rule, {
71
71
]
72
72
});
73
73
` ,
74
+ output : `
75
+ new RuleTester().run('foo', bar, {
76
+ valid: [
77
+ {
78
+ code: "foo", output: "bar", options: ["baz"],
79
+ },
80
+ ]
81
+ });
82
+ ` ,
74
83
errors : [ { message : 'The properties of a test case should be placed in a consistent order: [code, output, options].' } ] ,
75
84
} ,
76
85
{
77
86
code : `
78
- new RuleTester().run('foo', bar, {
79
- valid: [
80
- {
81
- env: { es6: true },
82
- code: "foo",
83
- output: "bar",
84
- options: ["baz"],
85
- },
86
- ]
87
- });
87
+ new RuleTester().run('foo', bar, {
88
+ valid: [
89
+ {
90
+ env: { es6: true },
91
+ code: "foo",
92
+ output: "bar",
93
+ options: ["baz"],
94
+ },
95
+ ]
96
+ });
97
+ ` ,
98
+ output : `
99
+ new RuleTester().run('foo', bar, {
100
+ valid: [
101
+ {
102
+ code: "foo", output: "bar", options: ["baz"], env: { es6: true },
103
+ },
104
+ ]
105
+ });
88
106
` ,
89
107
errors : [ { message : 'The properties of a test case should be placed in a consistent order: [code, output, options, env].' } ] ,
90
108
} ,
@@ -101,6 +119,15 @@ ruleTester.run('test-case-property-ordering', rule, {
101
119
]
102
120
});
103
121
` ,
122
+ output : `
123
+ new RuleTester().run('foo', bar, {
124
+ valid: [
125
+ {
126
+ code: "foo", output: "bar", options: ["baz"], env: { es6: true },
127
+ },
128
+ ]
129
+ });
130
+ ` ,
104
131
errors : [ { message : 'The properties of a test case should be placed in a consistent order: [code, output, options, env].' } ] ,
105
132
} ,
106
133
{
@@ -115,6 +142,15 @@ ruleTester.run('test-case-property-ordering', rule, {
115
142
]
116
143
});
117
144
` ,
145
+ output : `
146
+ new RuleTester().run('foo', bar, {
147
+ valid: [
148
+ {
149
+ code: "foo", options: ["baz"], output: "bar",
150
+ },
151
+ ]
152
+ });
153
+ ` ,
118
154
options : [ [ 'code' , 'errors' , 'options' , 'output' , 'parserOptions' ] ] ,
119
155
errors : [ { message : 'The properties of a test case should be placed in a consistent order: [code, options, output].' } ] ,
120
156
} ,
@@ -132,6 +168,15 @@ ruleTester.run('test-case-property-ordering', rule, {
132
168
]
133
169
});
134
170
` ,
171
+ output : `
172
+ new RuleTester().run('foo', bar, {
173
+ valid: [
174
+ {
175
+ code: "foo", errors: ["foo"], output: "", options: ["baz"], parserOptions: "",
176
+ },
177
+ ]
178
+ });
179
+ ` ,
135
180
options : [ [ 'code' , 'errors' , 'output' ] ] ,
136
181
errors : [ { message : 'The properties of a test case should be placed in a consistent order: [code, errors, output, options, parserOptions].' } ] ,
137
182
} ,
0 commit comments