diff options
| author | Luca Casonato <hello@lcas.dev> | 2023-05-03 23:08:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-03 23:08:42 +0200 |
| commit | d905f20cadfd95b927027a3c597d578db606984e (patch) | |
| tree | 70664b2187e1864cb713092c5e918bf044454cf5 /cli/tests | |
| parent | 632395da89c767913cb88edfb437d02772fe84b9 (diff) | |
fix(ext/kv): throw on the Kv constructor (#18978)
Closes #18963
---------
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tests')
| -rw-r--r-- | cli/tests/unit/kv_test.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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() { |
