Skip to content

Commit

Permalink
test: fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ozum committed Feb 13, 2021
1 parent 88c717b commit 149c714
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/db.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ beforeAll(async () => {

describe("Db", () => {
it("should throw if database name is not provided", () => {
expect(() => new Db({ name: undefined as any, serverVersion: "x" }, {} as any, undefined as any)).toThrow("Database name is required.");
expect(() => new Db({ name: undefined as any, serverVersion: "x" }, {} as any, undefined as any, undefined as any)).toThrow(
"Database name is required."
);
});

it("should have config with default values.", () => {
Expand Down

0 comments on commit 149c714

Please sign in to comment.