20
20
NodejsNpmrcCleanUpAction ,
21
21
NodejsNpmLockFileCleanUpAction ,
22
22
NodejsNpmCIAction ,
23
+ NodejsNpmUpdateAction ,
23
24
)
24
25
25
26
@@ -107,7 +108,7 @@ def test_workflow_sets_up_npm_actions_with_download_dependencies_without_depende
107
108
self .assertIsInstance (workflow .actions [3 ], CopySourceAction )
108
109
self .assertEqual (workflow .actions [3 ].source_dir , "source" )
109
110
self .assertEqual (workflow .actions [3 ].dest_dir , "artifacts" )
110
- self .assertIsInstance (workflow .actions [4 ], NodejsNpmInstallAction )
111
+ self .assertIsInstance (workflow .actions [4 ], NodejsNpmUpdateAction )
111
112
self .assertEqual (workflow .actions [4 ].install_dir , "not_source" )
112
113
self .assertIsInstance (workflow .actions [5 ], LinkSinglePathAction )
113
114
self .assertEqual (workflow .actions [5 ]._source , os .path .join ("not_source" , "node_modules" ))
@@ -331,7 +332,7 @@ def test_build_in_source_with_download_dependencies(self, can_use_links_mock):
331
332
self .assertIsInstance (workflow .actions [0 ], NodejsNpmPackAction )
332
333
self .assertIsInstance (workflow .actions [1 ], NodejsNpmrcAndLockfileCopyAction )
333
334
self .assertIsInstance (workflow .actions [2 ], CopySourceAction )
334
- self .assertIsInstance (workflow .actions [3 ], NodejsNpmInstallAction )
335
+ self .assertIsInstance (workflow .actions [3 ], NodejsNpmUpdateAction )
335
336
self .assertEqual (workflow .actions [3 ].install_dir , source_dir )
336
337
self .assertIsInstance (workflow .actions [4 ], LinkSinglePathAction )
337
338
self .assertEqual (workflow .actions [4 ]._source , os .path .join (source_dir , "node_modules" ))
@@ -358,7 +359,7 @@ def test_build_in_source_with_download_dependencies_and_dependencies_dir(self, c
358
359
self .assertIsInstance (workflow .actions [0 ], NodejsNpmPackAction )
359
360
self .assertIsInstance (workflow .actions [1 ], NodejsNpmrcAndLockfileCopyAction )
360
361
self .assertIsInstance (workflow .actions [2 ], CopySourceAction )
361
- self .assertIsInstance (workflow .actions [3 ], NodejsNpmInstallAction )
362
+ self .assertIsInstance (workflow .actions [3 ], NodejsNpmUpdateAction )
362
363
self .assertEqual (workflow .actions [3 ].install_dir , source_dir )
363
364
self .assertIsInstance (workflow .actions [4 ], LinkSinglePathAction )
364
365
self .assertEqual (workflow .actions [4 ]._source , os .path .join (source_dir , "node_modules" ))
@@ -442,5 +443,5 @@ def test_workflow_revert_build_in_source(self, install_action_mock, install_link
442
443
subprocess_npm = ANY ,
443
444
osutils = ANY ,
444
445
build_options = ANY ,
445
- install_links = False ,
446
+ is_building_in_source = False ,
446
447
)
0 commit comments