Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brandenrodgers committed Nov 22, 2024
1 parent 3cbe121 commit dc75a80
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions commands/__tests__/filemanager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
import yargs from 'yargs';
import upload from '../filemanager/upload';
import fetch from '../filemanager/fetch';
import {
addAccountOptions,
addConfigOptions,
addOverwriteOptions,
} from '../../lib/commonOpts';

jest.mock('yargs');
jest.mock('../filemanager/upload');
Expand Down Expand Up @@ -44,19 +39,6 @@ describe('commands/filemanager', () => {
expect(yargs.demandCommand).toHaveBeenCalledWith(1, '');
});

it('should support the correct options', () => {
filemanagerCommand.builder(yargs);

expect(addConfigOptions).toHaveBeenCalledTimes(1);
expect(addConfigOptions).toHaveBeenCalledWith(yargs);

expect(addAccountOptions).toHaveBeenCalledTimes(1);
expect(addAccountOptions).toHaveBeenCalledWith(yargs);

expect(addOverwriteOptions).toHaveBeenCalledTimes(1);
expect(addOverwriteOptions).toHaveBeenCalledWith(yargs);
});

it('should add the correct number of sub commands', () => {
filemanagerCommand.builder(yargs);
expect(yargs.command).toHaveBeenCalledTimes(subcommands.length);
Expand Down

0 comments on commit dc75a80

Please sign in to comment.