Skip to content

Commit

Permalink
feat: make serialize method public
Browse files Browse the repository at this point in the history
  • Loading branch information
joscha authored Jul 14, 2021
2 parents 4c3888e + 0ef45ae commit 581df89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/retry_command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class RetryCommand extends Command {
super(command.toString(), command.timeout * (retries + 1));
}

protected serialize(): string {
public serialize(): string {
return new Array(this.retries + 1).fill(this.command).join(' || ');
}

Expand Down
2 changes: 1 addition & 1 deletion src/steps/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Command {
return this.command;
}

protected serialize(): string {
public serialize(): string {
return this.toString();
}
}
Expand Down

0 comments on commit 581df89

Please sign in to comment.