From c1373d08f3f070cd66cc03b3213503121613aa51 Mon Sep 17 00:00:00 2001 From: Elon Volo Date: Sat, 23 Jan 2021 19:23:36 -0500 Subject: [PATCH] Making transform-test harness compliant with project's linting standards. --- __tests__/transform-test.js | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/__tests__/transform-test.js b/__tests__/transform-test.js index 68bc451..f9619e7 100644 --- a/__tests__/transform-test.js +++ b/__tests__/transform-test.js @@ -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' });