1.1.0
This commit is contained in:
parent
13c3d86a10
commit
20ac2da081
6 changed files with 47 additions and 10 deletions
|
@ -135,3 +135,11 @@ test("kv store can set and retrieve arbitrary values", () => {
|
|||
expect(pq.kv.get<{ enabled: boolean }>("config")).toEqual({ enabled: true });
|
||||
expect(pq.kv.get<string[]>("list")).toEqual(["a", "b", "c"]);
|
||||
});
|
||||
|
||||
test(".query() creates a cached statement", () => {
|
||||
const pq = new Prequel();
|
||||
const query = pq.query("SELECT 1");
|
||||
|
||||
expect(query).toBeDefined();
|
||||
expect(query).toBe(pq.query("SELECT 1"));
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue