Skip to content

Commit

Permalink
fix tests + types
Browse files Browse the repository at this point in the history
  • Loading branch information
camden11 committed Jan 5, 2024
1 parent c33e268 commit bbe2dee
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/fileManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function fetchStat(

export async function fetchFiles(
accountId: number,
folderId: number,
folderId: number | 'None',
offset: number,
archived?: boolean
): Promise<FetchFilesResponse> {
Expand All @@ -68,7 +68,7 @@ export async function fetchFiles(

export async function fetchFolders(
accountId: number,
folderId: number
folderId: number | 'None'
): Promise<FetchFolderResponse> {
return http.get(accountId, {
url: `${FILE_MANAGER_V2_API_PATH}/folders/`,
Expand Down
4 changes: 2 additions & 2 deletions lib/__tests__/fileManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { uploadFile } from '../../api/fileManager';
import { walk } from '../fs';
import { createIgnoreFilter } from '../ignoreRules';

jest.mock('../lib/walk');
jest.mock('../api/fileManager');
jest.mock('../fs');
jest.mock('../../api/fileManager');
jest.mock('../ignoreRules');

describe('uploadFolder', () => {
Expand Down
2 changes: 1 addition & 1 deletion lib/fileManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ async function downloadFile(

async function fetchAllPagedFiles(
accountId: number,
folderId: number,
folderId: number | 'None',
includeArchived?: boolean
): Promise<Array<File>> {
let totalFiles: number | null = null;
Expand Down

0 comments on commit bbe2dee

Please sign in to comment.