From d905f20cadfd95b927027a3c597d578db606984e Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Wed, 3 May 2023 23:08:42 +0200 Subject: fix(ext/kv): throw on the Kv constructor (#18978) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #18963 --------- Co-authored-by: Bartek IwaƄczuk --- cli/tests/unit/kv_test.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli') diff --git a/cli/tests/unit/kv_test.ts b/cli/tests/unit/kv_test.ts index 3a3476857..3c5efa588 100644 --- a/cli/tests/unit/kv_test.ts +++ b/cli/tests/unit/kv_test.ts @@ -1256,6 +1256,12 @@ dbTest("keys must be arrays", async (db) => { ); }); +Deno.test("Deno.Kv constructor throws", () => { + assertThrows(() => { + new Deno.Kv(); + }); +}); + // This function is never called, it is just used to check that all the types // are behaving as expected. async function _typeCheckingTests() { -- cgit v1.2.3