@@ -64,12 +64,9 @@ describe('project delete source NUTs', () => {
64
64
const pathToSR = path . join ( testkit . projectDir , 'force-app' , 'main' , 'default' , 'staticresources' ) ;
65
65
const pathToJson = path . join ( pathToSR , 'sample_data_properties.json' ) ;
66
66
const pathToXml = path . join ( pathToSR , 'sample_data_properties.resource-meta.xml' ) ;
67
- const response = execCmd < DeleteSourceJson > (
68
- `project:delete:source --json --no-prompt --source-jpath ${ pathToJson } ` ,
69
- {
70
- ensureExitCode : 0 ,
71
- }
72
- ) . jsonOutput ?. result ;
67
+ const response = execCmd < DeleteSourceJson > ( `project:delete:source --json --no-prompt --source-path ${ pathToJson } ` , {
68
+ ensureExitCode : 0 ,
69
+ } ) . jsonOutput ?. result ;
73
70
expect ( response ?. deletedSource ) . to . have . length ( 2 ) ;
74
71
expect ( fs . existsSync ( pathToJson ) ) . to . be . false ;
75
72
expect ( fs . existsSync ( pathToXml ) ) . to . be . false ;
@@ -89,7 +86,7 @@ describe('project delete source NUTs', () => {
89
86
90
87
it ( 'should source:delete all Prompts using the source-jpath param' , ( ) => {
91
88
const response = execCmd < DeleteSourceJson > (
92
- `project:delete:source --json --no-prompt --source-jpath ${ path . join ( 'force-app' , 'main' , 'default' , 'prompts' ) } ` ,
89
+ `project:delete:source --json --no-prompt --source-path ${ path . join ( 'force-app' , 'main' , 'default' , 'prompts' ) } ` ,
93
90
{
94
91
ensureExitCode : 0 ,
95
92
}
@@ -103,7 +100,7 @@ describe('project delete source NUTs', () => {
103
100
it ( 'should source:delete an ApexClass using the source-jpath param' , ( ) => {
104
101
const { pathToClass } = createApexClass ( ) ;
105
102
const response = execCmd < DeleteSourceJson > (
106
- `project:delete:source --json --no-prompt --source-jpath ${ pathToClass } ` ,
103
+ `project:delete:source --json --no-prompt --source-path ${ pathToClass } ` ,
107
104
{
108
105
ensureExitCode : 0 ,
109
106
}
0 commit comments