Skip to content

Commit

Permalink
revert test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhaiwat10 committed Sep 13, 2024
1 parent 6d14901 commit 735d75d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 1 addition & 5 deletions packages/versions/src/bin.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import { runVersions } from './cli';

runVersions()
.then(() => process.exit(0))
.catch(() => {
process.exit(1);
});
runVersions();
8 changes: 4 additions & 4 deletions packages/versions/src/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('cli.js', () => {
runVersions();

// validating
expect(info).toHaveBeenCalledTimes(3);
expect(info).toHaveBeenCalledTimes(2);
expect(exit).toHaveBeenCalledWith(0);
expect(error).toHaveBeenCalledTimes(0);
});
Expand All @@ -125,7 +125,7 @@ describe('cli.js', () => {
runVersions();

// validating
expect(info).toHaveBeenCalledTimes(3);
expect(info).toHaveBeenCalledTimes(2);
expect(exit).toHaveBeenCalledWith(0);
expect(error).toHaveBeenCalledTimes(0);
});
Expand All @@ -148,7 +148,7 @@ describe('cli.js', () => {
runVersions();

// validating
expect(info).toHaveBeenCalledTimes(1);
expect(info).toHaveBeenCalledTimes(0);
expect(exit).toHaveBeenCalledWith(1);
expect(error).toHaveBeenCalledTimes(3);
});
Expand All @@ -173,7 +173,7 @@ describe('cli.js', () => {
runVersions();

// validating
expect(info).toHaveBeenCalledTimes(1);
expect(info).toHaveBeenCalledTimes(0);
expect(exit).toHaveBeenCalledWith(1);
expect(error).toHaveBeenCalledTimes(4);

Expand Down

0 comments on commit 735d75d

Please sign in to comment.