@@ -80,7 +80,7 @@ describe('module remove', () => {
8080 await removeCommand . setup ( {
8181 args : {
8282 cwd : '/fake-dir' ,
83- _ : [ 'content' ] ,
83+ moduleName : [ 'content' ] ,
8484 } ,
8585 } )
8686
@@ -113,7 +113,7 @@ describe('module remove', () => {
113113 } ] )
114114
115115 const removeCommand = await ( commands as CommandsType ) . subCommands . remove ( )
116- await removeCommand . setup ( { args : { cwd : '/fake-dir' , skipConfig : true , _ : [ 'example-module' ] } } )
116+ await removeCommand . setup ( { args : { cwd : '/fake-dir' , skipConfig : true , moduleName : [ 'example-module' ] } } )
117117
118118 expect ( removeDependency ) . toHaveBeenCalledWith ( [ 'example' ] , expect . objectContaining ( { cwd : '/fake-dir' } ) )
119119 } )
@@ -123,7 +123,7 @@ describe('module remove', () => {
123123 await removeCommand . setup ( {
124124 args : {
125125 cwd : '/fake-dir' ,
126- _ : [ '@nuxt/content' ] ,
126+ moduleName : [ '@nuxt/content' ] ,
127127 } ,
128128 } )
129129
@@ -141,7 +141,7 @@ describe('module remove', () => {
141141 await removeCommand . setup ( {
142142 args : {
143143 cwd : '/fake-dir' ,
144- _ : [ ] ,
144+ moduleName : [ ] ,
145145 } ,
146146 } )
147147
@@ -157,7 +157,7 @@ describe('module remove', () => {
157157 await removeCommand . setup ( {
158158 args : {
159159 cwd : '/fake-dir' ,
160- _ : [ ] ,
160+ moduleName : [ ] ,
161161 } ,
162162 } )
163163
@@ -171,7 +171,7 @@ describe('module remove', () => {
171171 args : {
172172 cwd : '/fake-dir' ,
173173 skipInstall : true ,
174- _ : [ '@nuxt/content' ] ,
174+ moduleName : [ '@nuxt/content' ] ,
175175 } ,
176176 } )
177177
@@ -185,7 +185,7 @@ describe('module remove', () => {
185185 await expect ( removeCommand . setup ( {
186186 args : {
187187 cwd : '/fake-dir' ,
188- _ : [ '@nuxt/content' ] ,
188+ moduleName : [ '@nuxt/content' ] ,
189189 } ,
190190 } ) ) . rejects . toThrow ( 'process.exit unexpectedly called with "1"' )
191191
@@ -198,7 +198,7 @@ describe('module remove', () => {
198198 args : {
199199 cwd : '/fake-dir' ,
200200 skipConfig : true ,
201- _ : [ '@nuxt/content' ] ,
201+ moduleName : [ '@nuxt/content' ] ,
202202 } ,
203203 } )
204204
@@ -215,7 +215,7 @@ describe('module remove', () => {
215215 await removeCommand . setup ( {
216216 args : {
217217 cwd : '/fake-dir' ,
218- _ : [ '@nuxt/content' ] ,
218+ moduleName : [ '@nuxt/content' ] ,
219219 } ,
220220 } )
221221
@@ -239,7 +239,7 @@ describe('module remove', () => {
239239 await removeCommand . setup ( {
240240 args : {
241241 cwd : '/fake-dir' ,
242- _ : [ '@vee-validate/nuxt' ] ,
242+ moduleName : [ '@vee-validate/nuxt' ] ,
243243 } ,
244244 } )
245245
@@ -265,7 +265,7 @@ describe('module remove', () => {
265265 ) )
266266
267267 const removeCommand = await ( commands as CommandsType ) . subCommands . remove ( )
268- await removeCommand . setup ( { args : { cwd : '/fake-dir' , _ : [ '@example/nuxt' ] } } )
268+ await removeCommand . setup ( { args : { cwd : '/fake-dir' , moduleName : [ '@example/nuxt' ] } } )
269269
270270 expect ( confirm ) . not . toHaveBeenCalled ( )
271271 expect ( removeDependency ) . toHaveBeenCalledWith ( [ '@example/nuxt' ] , expect . objectContaining ( { cwd : '/fake-dir' } ) )
@@ -288,7 +288,7 @@ describe('module remove', () => {
288288 await removeCommand . setup ( {
289289 args : {
290290 cwd : '/fake-dir' ,
291- _ : [ '@vee-validate/nuxt' ] ,
291+ moduleName : [ '@vee-validate/nuxt' ] ,
292292 } ,
293293 } )
294294
@@ -323,7 +323,7 @@ describe('module remove', () => {
323323 } )
324324
325325 const removeCommand = await ( commands as CommandsType ) . subCommands . remove ( )
326- await removeCommand . setup ( { args : { cwd : '/fake-dir' , _ : [ '@vee-validate/nuxt' ] } } )
326+ await removeCommand . setup ( { args : { cwd : '/fake-dir' , moduleName : [ '@vee-validate/nuxt' ] } } )
327327
328328 expect ( peak ) . toBeGreaterThan ( 1 )
329329 } )
@@ -351,7 +351,7 @@ describe('module remove', () => {
351351 await removeCommand . setup ( {
352352 args : {
353353 cwd : '/fake-dir' ,
354- _ : [ '@vee-validate/nuxt' ] ,
354+ moduleName : [ '@vee-validate/nuxt' ] ,
355355 } ,
356356 } )
357357
0 commit comments