Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
changlong-liu committed Apr 2, 2021
1 parent bd997f4 commit 4709fc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions src/generate/renders/tests/CliTestCmdlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,7 @@ export class CliCmdletTest extends TemplateBase {
);
}

if (
commandLines[0].indexOf(' delete') > -1 &&
example.httpMethod.toLowerCase() === 'delete'
) {
if (example.Method === 'delete') {
commandLines[0] += ' -y';
}
const exampleInfo = new ExampleInfo();
Expand Down
5 changes: 1 addition & 4 deletions src/generate/renders/tests/CliTestStep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,7 @@ export class CliTestStep extends TemplateBase {
);
} else {
stepBuff[cmdString] = functionName;
if (
exampleCmd[0].indexOf(' delete') > -1 &&
examples[exampleIdx].HttpMethod.toLowerCase() === 'delete'
) {
if (examples[exampleIdx].Method === 'delete') {
exampleCmd[0] += ' -y';
}

Expand Down

0 comments on commit 4709fc7

Please sign in to comment.