Skip to content

Commit

Permalink
Fix tests p1
Browse files Browse the repository at this point in the history
  • Loading branch information
kemmerle committed Jan 22, 2025
1 parent 417ec76 commit 76443f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions commands/__tests__/accounts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import use from '../account/use';
import info from '../account/info';
import remove from '../account/remove';
import clean from '../account/clean';
import createOverride from '../account/createOverride';

jest.mock('yargs');
jest.mock('../account/list');
Expand All @@ -14,6 +15,7 @@ jest.mock('../account/use');
jest.mock('../account/info');
jest.mock('../account/remove');
jest.mock('../account/clean');
jest.mock('../account/createOverride');
jest.mock('../../lib/commonOpts');
yargs.command.mockReturnValue(yargs);
yargs.demandCommand.mockReturnValue(yargs);
Expand Down Expand Up @@ -42,6 +44,7 @@ describe('commands/account', () => {
['info', info],
['remove', remove],
['clean', clean],
['create-override', createOverride],
];

it('should demand the command takes one positional argument', () => {
Expand Down

0 comments on commit 76443f4

Please sign in to comment.