Skip to content

Commit

Permalink
fix(mocks): remove unused function arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Mar 19, 2024
1 parent c45d6eb commit e9dabc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/__mocks__/fs/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as YAML from 'js-yaml';

export const readFile = async (filePath: string, _format: string) => {
export const readFile = async (filePath: string) => {
/** mock for util/json */
if (filePath.includes('json-reject')) {
return Promise.reject(new Error('rejected'));
Expand Down Expand Up @@ -39,7 +39,7 @@ export const readFile = async (filePath: string, _format: string) => {
cpu/utilization: 16`;
};

export const mkdir = (dirPath: string, _object: any) => dirPath;
export const mkdir = (dirPath: string) => dirPath;

export const writeFile = async (pathToFile: string, content: string) => {
if (pathToFile === 'reject') {
Expand Down

0 comments on commit e9dabc0

Please sign in to comment.