From 2707a38556e07ea5be4cc7ab21db72decc9d208e Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 16 Jan 2024 14:02:36 +0000 Subject: [PATCH] fix: fix typo in singleton unit test --- tests/unit/singleton.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/singleton.test.ts b/tests/unit/singleton.test.ts index 0db3d671..ed168498 100644 --- a/tests/unit/singleton.test.ts +++ b/tests/unit/singleton.test.ts @@ -13,7 +13,7 @@ describe("singleton", () => { driver: new SqliteDriverMock("nice.sqlite"), }); - const result = QuickDB.getSingletion("test"); + const result = QuickDB.getSingleton("test"); expect(result).toBeDefined(); expect(result).toBeInstanceOf(QuickDB); }); @@ -25,7 +25,7 @@ describe("singleton", () => { }); it("should error when getting singleton without name", () => { - expect(QuickDB.getSingletion).toThrow( + expect(QuickDB.getSingleton).toThrow( expect.objectContaining({ kind: ErrorKind.InvalidType }) ); });