Skip to content

Commit

Permalink
import fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sadabnepal committed Aug 7, 2023
1 parent c229f09 commit 22fa5c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pages/BasePage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ChainablePromiseElement } from 'webdriverio';
import { logStep } from "../utils/reporter";
import { logStep } from "../utils/AssertionUtils";

export type WebElement = ChainablePromiseElement<WebdriverIO.Element>

Expand Down
8 changes: 4 additions & 4 deletions src/utils/fileutils.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import fs from 'fs';
import { logStep } from './reporter';
import { logStep } from './AssertionUtils';

export const deleteDirectory = (path: string)=> {
if(fs.existsSync(path)) {
fs.rmdirSync(path, {recursive: true})
export const deleteDirectory = (path: string) => {
if (fs.existsSync(path)) {
fs.rmdirSync(path, { recursive: true })
logStep(`Directory Deleted: ${path}`)
}
}

0 comments on commit 22fa5c2

Please sign in to comment.