Skip to content

Commit 0f0eb1c

Browse files
feat: rename revert config option and expose through cleanUp
1 parent f25d299 commit 0f0eb1c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/page-objects/cli.page.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,11 +211,15 @@ export class CliPage {
211211
return {accessKey: accessKey.trim()};
212212
}
213213

214-
async close({revertConfig}: {revertConfig: boolean} = {revertConfig: true}): Promise<void> {
215-
if (revertConfig) {
216-
await this.revertConfig();
214+
async close({cleanUp}: {cleanUp: boolean} = {cleanUp: true}): Promise<void> {
215+
if (cleanUp) {
216+
await this.cleanUp();
217217
}
218218

219219
await this.logout();
220220
}
221+
222+
async cleanUp(): Promise<void> {
223+
await this.revertConfig();
224+
}
221225
}

0 commit comments

Comments
 (0)