Skip to content

Commit

Permalink
renaming test file for renamed 'where' rule
Browse files Browse the repository at this point in the history
  • Loading branch information
getify committed Mar 25, 2019
1 parent c03e4ab commit a3d4e6a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/node-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ else {

eslinter.defineRule("@getify/proper-arrows/params",properArrows.rules.params);
eslinter.defineRule("@getify/proper-arrows/name",properArrows.rules.name);
eslinter.defineRule("@getify/proper-arrows/location",properArrows.rules.location);
eslinter.defineRule("@getify/proper-arrows/where",properArrows.rules.where);
eslinter.defineRule("@getify/proper-arrows/return",properArrows.rules.return);
eslinter.defineRule("@getify/proper-arrows/this",properArrows.rules.this);

Expand Down
10 changes: 5 additions & 5 deletions tests/tests.trivial.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var linterOptions = {
rules: {
"@getify/proper-arrows/params": "error",
"@getify/proper-arrows/name": "error",
"@getify/proper-arrows/location": "error",
"@getify/proper-arrows/where": "error",
"@getify/proper-arrows/return": "error",
"@getify/proper-arrows/this": "error",
},
Expand All @@ -16,21 +16,21 @@ var linterOptions = {
rules: {
"@getify/proper-arrows/params": ["error",{trivial:true,},],
"@getify/proper-arrows/name": ["error",{trivial:true,},],
"@getify/proper-arrows/location": ["error",{trivial:true,},],
"@getify/proper-arrows/where": ["error",{trivial:true,},],
"@getify/proper-arrows/return": ["error",{trivial:true,},],
"@getify/proper-arrows/this": ["error","nested",{trivial:true,},],
},
},
trivialModuleDefault: {
parserOptions: { ecmaVersion: 2015, sourceType: "module", },
rules: {
"@getify/proper-arrows/location": "error",
"@getify/proper-arrows/where": "error",
},
},
trivialModule: {
parserOptions: { ecmaVersion: 2015, sourceType: "module", },
rules: {
"@getify/proper-arrows/location": ["error",{trivial:true,},],
"@getify/proper-arrows/where": ["error",{trivial:true,},],
},
},
};
Expand Down Expand Up @@ -189,6 +189,6 @@ QUnit.test( "TRIVIAL (module-export, trivial:true): violating", function test(as

assert.expect( 3 );
assert.strictEqual( results.length, 1, "only 1 error" );
assert.strictEqual( ruleId, "@getify/proper-arrows/location", "ruleId" );
assert.strictEqual( ruleId, "@getify/proper-arrows/where", "ruleId" );
assert.strictEqual( messageId, "noExport", "messageId" );
} );
File renamed without changes.

0 comments on commit a3d4e6a

Please sign in to comment.