Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jchris committed Sep 16, 2024
1 parent f5d78f5 commit 917fcd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
2 changes: 1 addition & 1 deletion tests/fireproof/gateway.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fireproof as database, Database, DocResponse, DocWithId, bs } from "@fireproof/core";
import { Database, bs } from "@fireproof/core";
import { URI } from "@adviser/cement";

// @ts-expect-error - This import has no type definitions
Expand Down
28 changes: 1 addition & 27 deletions tests/fireproof/hello.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import { fireproof as database, Database, DocResponse, DocWithId, bs } from "@fireproof/core";
import { URI } from "@adviser/cement";

// @ts-expect-error - This import has no type definitions
import { fileContent } from "./cars/bafkreidxwt2nhvbl4fnqfw3ctlt6zbrir4kqwmjo5im6rf4q5si27kgo2i.js";
import { fireproof as database, Database, DocResponse, DocWithId } from "@fireproof/core";

describe("Hello World Test", function () {
it("should pass the hello world test", function () {
Expand All @@ -11,28 +7,6 @@ describe("Hello World Test", function () {
});
});

function customExpect(value: unknown, matcher: (val: unknown) => void, message: string): void {
try {
matcher(value);
} catch (error) {
void error;
// console.error(error);
throw new Error(message);
}
}

interface ExtendedGateway extends bs.Gateway {
logger: { _attributes: { module: string; url?: string } };
headerSize: number;
fidLength: number;
}

interface ExtendedStore {
gateway: ExtendedGateway;
_url: URI;
name: string;
}

describe("hello public API", function () {
interface TestDoc {
foo: string;
Expand Down

0 comments on commit 917fcd7

Please sign in to comment.