Skip to content

Commit 80919ad

Browse files
committed
fix: typo in flag name
1 parent 07a1a62 commit 80919ad

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

test/commands/delete/source.nut.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,12 +64,9 @@ describe('project delete source NUTs', () => {
6464
const pathToSR = path.join(testkit.projectDir, 'force-app', 'main', 'default', 'staticresources');
6565
const pathToJson = path.join(pathToSR, 'sample_data_properties.json');
6666
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;
7370
expect(response?.deletedSource).to.have.length(2);
7471
expect(fs.existsSync(pathToJson)).to.be.false;
7572
expect(fs.existsSync(pathToXml)).to.be.false;
@@ -89,7 +86,7 @@ describe('project delete source NUTs', () => {
8986

9087
it('should source:delete all Prompts using the source-jpath param', () => {
9188
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')}`,
9390
{
9491
ensureExitCode: 0,
9592
}
@@ -103,7 +100,7 @@ describe('project delete source NUTs', () => {
103100
it('should source:delete an ApexClass using the source-jpath param', () => {
104101
const { pathToClass } = createApexClass();
105102
const response = execCmd<DeleteSourceJson>(
106-
`project:delete:source --json --no-prompt --source-jpath ${pathToClass}`,
103+
`project:delete:source --json --no-prompt --source-path ${pathToClass}`,
107104
{
108105
ensureExitCode: 0,
109106
}

0 commit comments

Comments
 (0)