Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update wrong methods #6882

Merged
merged 3 commits into from
Mar 31, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 10 additions & 8 deletions lib/testing/src/lib/core/utils/string.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,20 @@ export class StringUtil {
return fileNames;
}

/**
* Generates a random name for a process
/** Generates a random name for a process
*
* @param length {int} If this parameter is not provided the length is set to 5 by default.
*/
static generateProcessName(): string {
return 'process_' + StringUtil.generateRandomString(5);
static generateProcessName(length: number = 5): string {
return 'process_' + this.generateRandomString(length);
iuliaib marked this conversation as resolved.
Show resolved Hide resolved
}

/**
* Generates a random name for a task
/** Generates a random name for a process
*
* @param length {int} If this parameter is not provided the length is set to 5 by default.
*/
static generateUserTaskName(): string {
return 'userTask_' + StringUtil.generateRandomString(5);
static generateUserTaskName(length: number = 5): string {
return 'userTask_' + this.generateRandomString(length);
}

}