Skip to content

Commit

Permalink
remove non-working test
Browse files Browse the repository at this point in the history
  • Loading branch information
dawehner committed Jun 18, 2019
1 parent f3ac102 commit 3618c7b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 26 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-ramda",
"version": "3.0.1-beta.1",
"version": "3.0.0-beta.1",
"description": "ESLint rules for use with Ramda",
"license": "MIT",
"keywords": [
Expand Down
6 changes: 1 addition & 5 deletions rules/complement-simplification.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ const isRamdaMethod = ast.isRamdaMethod;
const getName = ast.getName;

const names = {
or: 'and',
and: 'or',
T: 'F',
F: 'T',
lte: 'gt',
gte: 'lt'
F: 'T'
};

const create = context => ({
Expand Down
22 changes: 2 additions & 20 deletions test/complement-simplification.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const error = (from, to) => ({
ruleTester.run('complement-simplification', rule, {
valid: [
'complement(equals)',
'complement(and)',
'complement(or)',
'complement(odd())',
'R.complement(equals)'
],
Expand All @@ -31,29 +33,9 @@ ruleTester.run('complement-simplification', rule, {
code: 'complement(F)',
errors: [error('F', 'T')]
},
{
code: 'complement(or)',
errors: [error('or', 'and')]
},
{
code: 'complement(and)',
errors: [error('and', 'or')]
},
{
code: 'R.complement(R.T)',
errors: [error('T', 'F')]
},
{
code: 'R.complement(or)',
errors: [error('or', 'and')]
},
{
code: 'complement(lte)',
errors: [error('lte', 'gt')]
},
{
code: 'complement(gte)',
errors: [error('gte', 'lt')]
}
]
});

0 comments on commit 3618c7b

Please sign in to comment.