Skip to content

Commit

Permalink
Remove featureless test and fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tihonove committed Aug 16, 2017
1 parent 55bdaee commit 9af8223
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions tests/src/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ ruleTester.run('order', rule, {
],
}),

// reorder cant cross function call
// reorder fix cannot cross non import or require
test(withoutAutofixOutput({
code: `
var async = require('async');
Expand All @@ -1166,19 +1166,7 @@ ruleTester.run('order', rule, {
message: '`fs` import should occur before import of `async`',
}],
})),
// reorder cant cross variable assignemet
test(withoutAutofixOutput({
code: `
var async = require('async');
var a = 1;
var fs = require('fs');
`,
errors: [{
ruleId: 'order',
message: '`fs` import should occur before import of `async`',
}],
})),
// reorder cant cross non plain requires
// reorder cannot cross non plain requires
test(withoutAutofixOutput({
code: `
var async = require('async');
Expand Down Expand Up @@ -1224,8 +1212,7 @@ ruleTester.run('order', rule, {
message: '`fs` import should occur before import of `async`',
}],
})),

// reorder cant cross function call (import statement)
// reorder cannot cross function call (import statement)
test(withoutAutofixOutput({
code: `
import async from 'async';
Expand All @@ -1237,7 +1224,7 @@ ruleTester.run('order', rule, {
message: '`fs` import should occur before import of `async`',
}],
})),
// reorder cant cross variable assignemet (import statement)
// reorder cannot cross variable assignemet (import statement)
test(withoutAutofixOutput({
code: `
import async from 'async';
Expand All @@ -1249,7 +1236,7 @@ ruleTester.run('order', rule, {
message: '`fs` import should occur before import of `async`',
}],
})),
// reorder cant cross non plain requires (import statement)
// reorder cannot cross non plain requires (import statement)
test(withoutAutofixOutput({
code: `
import async from 'async';
Expand Down

0 comments on commit 9af8223

Please sign in to comment.