@@ -22,15 +22,15 @@ describe('interactive mode', () => {
2222 it ( 'runs without codemodName and source params provided' , async ( ) => {
2323 const spyOnConsole = jest . spyOn ( console , 'log' ) . mockImplementation ( )
2424
25- prompts . inject ( [ 'magic-redirect ' ] )
25+ prompts . inject ( [ 'pluralized-methods ' ] )
2626 prompts . inject ( [ './transforms/__testfixtures__' ] )
2727
2828 await transform ( undefined , undefined , defaultOptions )
2929
3030 expect ( spyOnConsole ) . not . toHaveBeenCalled ( )
3131 expect ( run ) . toHaveBeenCalledTimes ( 1 )
3232 expect ( run ) . toHaveBeenCalledWith (
33- expect . stringContaining ( getSystemPath ( '/transforms/magic-redirect .js' ) ) ,
33+ expect . stringContaining ( getSystemPath ( '/transforms/pluralized-methods .js' ) ) ,
3434 expect . arrayContaining ( [ expect . stringContaining ( getSystemPath ( '/transforms/__testfixtures__' ) ) ] ) ,
3535 {
3636 babel : false ,
@@ -46,14 +46,14 @@ describe('interactive mode', () => {
4646 it ( 'runs properly on incorrect user input' , async ( ) => {
4747 const spyOnConsole = jest . spyOn ( console , 'log' ) . mockImplementation ( )
4848
49- prompts . inject ( [ 'magic-redirect ' ] )
49+ prompts . inject ( [ 'pluralized-methods ' ] )
5050
5151 await transform ( 'bad-codemod' , './transforms/__testfixtures__' , defaultOptions )
5252
5353 expect ( spyOnConsole ) . not . toHaveBeenCalled ( )
5454 expect ( run ) . toHaveBeenCalledTimes ( 1 )
5555 expect ( run ) . toHaveBeenCalledWith (
56- expect . stringContaining ( getSystemPath ( '/transforms/magic-redirect .js' ) ) ,
56+ expect . stringContaining ( getSystemPath ( '/transforms/pluralized-methods .js' ) ) ,
5757 expect . arrayContaining ( [ expect . stringContaining ( getSystemPath ( '/transforms/__testfixtures__' ) ) ] ) ,
5858 {
5959 babel : false ,
@@ -71,12 +71,12 @@ describe('interactive mode', () => {
7171
7272 prompts . inject ( [ '__testfixtures__' ] )
7373
74- await transform ( 'magic-redirect ' , undefined , defaultOptions )
74+ await transform ( 'pluralized-methods ' , undefined , defaultOptions )
7575
7676 expect ( spyOnConsole ) . not . toHaveBeenCalled ( )
7777 expect ( run ) . toHaveBeenCalledTimes ( 1 )
7878 expect ( run ) . toHaveBeenCalledWith (
79- expect . stringContaining ( getSystemPath ( '/transforms/magic-redirect .js' ) ) ,
79+ expect . stringContaining ( getSystemPath ( '/transforms/pluralized-methods .js' ) ) ,
8080 expect . arrayContaining ( [ expect . stringContaining ( '__testfixtures__' ) ] ) ,
8181 {
8282 babel : false ,
@@ -98,12 +98,12 @@ describe('Non-Interactive Mode', () => {
9898 it ( 'Transforms code with codemodName and source params provided' , async ( ) => {
9999 const spyOnConsole = jest . spyOn ( console , 'log' ) . mockImplementation ( )
100100
101- await transform ( 'magic-redirect ' , '__testfixtures__' , defaultOptions )
101+ await transform ( 'pluralized-methods ' , '__testfixtures__' , defaultOptions )
102102
103103 expect ( spyOnConsole ) . not . toHaveBeenCalled ( )
104104 expect ( run ) . toHaveBeenCalledTimes ( 1 )
105105 expect ( run ) . toHaveBeenCalledWith (
106- expect . stringContaining ( getSystemPath ( '/transforms/magic-redirect .js' ) ) ,
106+ expect . stringContaining ( getSystemPath ( '/transforms/pluralized-methods .js' ) ) ,
107107 expect . arrayContaining ( [ expect . stringContaining ( '__testfixtures__' ) ] ) ,
108108 {
109109 babel : false ,
0 commit comments