Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
w1am committed Feb 28, 2024
1 parent e9fd33e commit 2f3cbe3
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 18 deletions.
4 changes: 2 additions & 2 deletions src/__test__/connection/reconnect/all-nodes-down.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe("reconnect", () => {
// read the stream
await expect(async () => {
let count = 0;
for await (const e of client.readStream(STREAM_NAME, { maxCount: 10 })) {
for await (const _ of client.readStream(STREAM_NAME, { maxCount: 10 })) {
count++;
}
}).rejects.toThrowErrorMatchingInlineSnapshot(
Expand Down Expand Up @@ -127,7 +127,7 @@ describe("reconnect", () => {
// read the stream
await expect(async () => {
let count = 0;
for await (const e of client.readStream(STREAM_NAME, { maxCount: 10 })) {
for await (const _ of client.readStream(STREAM_NAME, { maxCount: 10 })) {
count++;
}
}).rejects.toThrowErrorMatchingInlineSnapshot(
Expand Down
1 change: 0 additions & 1 deletion src/__test__/extra/typedEvents-more.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ describe("typed events should compile", () => {
confirmedAt: new Date(event.data.confirmedAt),
};
default: {
const _: never = event;
throw ShoppingCartErrors.UNKNOWN_EVENT_TYPE;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/__test__/extra/write-after-end.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
EventData,
EventStoreDBClient,
jsonEvent,
JSONEventType,
UnavailableError,
} from "@eventstore/db-client";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/** @jest-environment ./src/__test__/utils/enableVersionCheck.ts */
import type { Duplex } from "stream";

import {
createTestNode,
Expand Down
5 changes: 2 additions & 3 deletions src/__test__/streams/readStream.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
StreamNotFoundError,
ResolvedEvent,
LinkEvent,
Position,
AppendResult,
InvalidArgumentError,
} from "@eventstore/db-client";
Expand Down Expand Up @@ -230,7 +229,7 @@ describe("readStream", () => {
test("stream revision invalid argument lower bound", async () => {
let count = 0;
try {
for await (const e of client.readStream(STREAM_NAME, {
for await (const _ of client.readStream(STREAM_NAME, {
direction: BACKWARDS,
fromRevision: BigInt(-1),
})) {
Expand All @@ -244,7 +243,7 @@ describe("readStream", () => {
test("stream revision invalid argument upper bound", async () => {
let count = 0;
try {
for await (const e of client.readStream(STREAM_NAME, {
for await (const _ of client.readStream(STREAM_NAME, {
direction: BACKWARDS,
fromRevision: BigInt("18446744073709551616"),
})) {
Expand Down
2 changes: 1 addition & 1 deletion src/__test__/streams/subscribeToAll.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jest-environment ./src/__test__/utils/enableVersionCheck.ts */

import { pipeline, Writable, Readable, finished } from "stream";
import { pipeline, Writable, Readable } from "stream";
import { promisify } from "util";

import {
Expand Down
2 changes: 1 addition & 1 deletion src/__test__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"noUnusedLocals": false,
"noUnusedLocals": true,
"paths": {
"@eventstore/db-client": ["../"],
"@test-utils": ["./utils"]
Expand Down
1 change: 0 additions & 1 deletion src/__test__/utils/Cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import type { EndPoint } from "../../types";

import { testDebug } from "./debug";
import { dockerImages } from "./dockerImages";
import { delay } from "./delay";

const rmdir = promisify(fs.rmdir);
const mkdir = promisify(fs.mkdir);
Expand Down
7 changes: 0 additions & 7 deletions src/__test__/utils/matchServerVersion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ const parseMatchVersion = (matchString: string): MatchVersion => {

if (!match) throw `Malformed version match string ${matchString}`;

const groups = match.groups as {
operator?: string;
year: string;
month?: string;
patch?: string;
};

if (!match || !match.groups) {
throw `Malformed version match string ${matchString}`;
}
Expand Down

0 comments on commit 2f3cbe3

Please sign in to comment.