Skip to content

Commit

Permalink
Refactor some methods
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-rr committed Apr 5, 2024
1 parent ba5f788 commit 0c1d917
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,14 @@ export default class ContextTestingHelper {
}

deleteSpecFileAtWorkingDir(): void {
if (existsSync(ASYNCAPI_FILE_PATH)) {
unlinkSync(ASYNCAPI_FILE_PATH);
}
}

newCommandHelper() {
return {
deleteSpecFile: () => {
const specificationFilePath = path.resolve(process.cwd(), 'specification.yaml');
if (existsSync(specificationFilePath)) {
unlinkSync(specificationFilePath);
}
unlinkSync(specificationFilePath);
}
};
}
Expand Down

0 comments on commit 0c1d917

Please sign in to comment.