Skip to content

Commit

Permalink
Making transform-test harness compliant with project's linting standa…
Browse files Browse the repository at this point in the history
…rds.
  • Loading branch information
ElonVolo committed Jan 24, 2021
1 parent 82d04e1 commit c1373d0
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions __tests__/transform-test.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
jest.autoMockOff();
const defineTest = require('jscodeshift/dist/testUtils').defineTest;

defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__'}, 'function-anonymous', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__', 'params' : true }, 'function-anonymous-logparams', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__'}, 'function-arrow', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__', 'params' : true }, 'function-arrow-logparams', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__'}, 'function-declaration', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__'}, 'function-declaration-export-default-function', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__', 'params' : true }, 'function-declaration-logparams', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__'}, 'function-return', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__'}, 'method-constructor', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__', 'params': true }, 'method-constructor-logparams', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__'}, 'method-instance', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__', 'params' : true}, 'method-instance-logparams', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__'}, 'method-static', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__', 'params' : true }, 'method-static-logparams', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__'}, 'statement-expression', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__', 'rxjs' : true }, 'rxjs-basic', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__', 'rxjs' : true }, 'rxjs-basic-existing-tap-import', { 'parser': 'ts' });
defineTest(__dirname + "../", 'transform', {'relpath': '__testfixtures__', 'rxjs' : true } , 'rxjs-internal-tap-import', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__'}, 'function-anonymous', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__', 'params' : true }, 'function-anonymous-logparams', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__'}, 'function-arrow', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__', 'params' : true }, 'function-arrow-logparams', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__'}, 'function-declaration', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__'}, 'function-declaration-export-default-function', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__', 'params' : true }, 'function-declaration-logparams', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__'}, 'function-return', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__'}, 'method-constructor', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__', 'params': true }, 'method-constructor-logparams', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__'}, 'method-instance', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__', 'params' : true}, 'method-instance-logparams', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__'}, 'method-static', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__', 'params' : true }, 'method-static-logparams', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__'}, 'statement-expression', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__', 'rxjs' : true }, 'rxjs-basic', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__', 'rxjs' : true }, 'rxjs-basic-existing-tap-import', { 'parser': 'ts' });
defineTest(__dirname + '../', 'transform', {'relpath': '__testfixtures__', 'rxjs' : true } , 'rxjs-internal-tap-import', { 'parser': 'ts' });

0 comments on commit c1373d0

Please sign in to comment.