Skip to content

Commit

Permalink
Patch unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
MatissJanis committed Jan 11, 2024
1 parent 6dbceb9 commit c35bb01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/loot-core/src/server/accounts/parse-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type ParseFileOptions = {

export async function parseFile(
filepath: string,
options?: ParseFileOptions,
options: ParseFileOptions = {},
): Promise<ParseFileResult> {
const errors = Array<ParseError>();
const m = filepath.match(/\.[^.]*$/);
Expand Down Expand Up @@ -50,7 +50,7 @@ export async function parseFile(

async function parseCSV(
filepath: string,
options?: ParseFileOptions,
options: ParseFileOptions,
): Promise<ParseFileResult> {
const errors = Array<ParseError>();
const contents = await fs.readFile(filepath);
Expand Down Expand Up @@ -107,7 +107,7 @@ async function parseQIF(filepath: string): Promise<ParseFileResult> {

async function parseOFX(
filepath: string,
options?: ParseFileOptions,
options: ParseFileOptions,
): Promise<ParseFileResult> {
const errors = Array<ParseError>();
const contents = await fs.readFile(filepath);
Expand Down

0 comments on commit c35bb01

Please sign in to comment.