From d7ed283d5071ea839e7d4a3902764d9e22bb7fa3 Mon Sep 17 00:00:00 2001 From: Bart Mesuere Date: Tue, 6 Aug 2024 12:25:48 +0200 Subject: [PATCH] fix linter --- lib/formatters/csv_formatter.ts | 1 - lib/formatters/to_xml.ts | 1 - tests/commands/unipept/pept2ec.test.ts | 2 +- tests/commands/unipept/pept2lca.test.ts | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/formatters/csv_formatter.ts b/lib/formatters/csv_formatter.ts index 7cd36212..3b661207 100644 --- a/lib/formatters/csv_formatter.ts +++ b/lib/formatters/csv_formatter.ts @@ -1,4 +1,3 @@ -import { get } from "http"; import { Formatter } from "./formatter.js"; import { stringify } from "csv-stringify/sync"; diff --git a/lib/formatters/to_xml.ts b/lib/formatters/to_xml.ts index fb10ead4..c806e4f2 100644 --- a/lib/formatters/to_xml.ts +++ b/lib/formatters/to_xml.ts @@ -1,4 +1,3 @@ -// eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-nocheck // This file was taken from https://github.com/kawanet/to-xml and modified to have a specific output for arrays. diff --git a/tests/commands/unipept/pept2ec.test.ts b/tests/commands/unipept/pept2ec.test.ts index ee789bed..87283aa7 100644 --- a/tests/commands/unipept/pept2ec.test.ts +++ b/tests/commands/unipept/pept2ec.test.ts @@ -2,7 +2,7 @@ import { jest } from '@jest/globals'; import { Pept2ec } from "../../../lib/commands/unipept/pept2ec"; let output: string[]; -const writeSpy = jest +jest .spyOn(process.stdout, "write") .mockImplementation((data: unknown) => { output.push(data as string); return true; }); diff --git a/tests/commands/unipept/pept2lca.test.ts b/tests/commands/unipept/pept2lca.test.ts index 0b18c6ac..881d6fa5 100644 --- a/tests/commands/unipept/pept2lca.test.ts +++ b/tests/commands/unipept/pept2lca.test.ts @@ -2,7 +2,7 @@ import { jest } from '@jest/globals'; import { Pept2lca } from "../../../lib/commands/unipept/pept2lca"; let output: string[]; -const writeSpy = jest +jest .spyOn(process.stdout, "write") .mockImplementation((data: unknown) => { output.push(data as string); return true; });