chore: restore production release gate
This commit is contained in:
@@ -15,9 +15,17 @@ function fakeDb() {
|
||||
|
||||
test("seed helpers parameterize object rows and removals", async () => {
|
||||
const { db, calls } = fakeDb();
|
||||
await addSeedData(db, [{ code: "free", credits: 10 }, { code: "pro", credits: 20 }], "plans", {
|
||||
conflict: "ignore",
|
||||
});
|
||||
await addSeedData(
|
||||
db,
|
||||
[
|
||||
{ code: "free", credits: 10 },
|
||||
{ code: "pro", credits: 20 },
|
||||
],
|
||||
"plans",
|
||||
{
|
||||
conflict: "ignore",
|
||||
},
|
||||
);
|
||||
await removeSeedData(db, { code: "free" }, "plans");
|
||||
expect(calls[0]).toEqual({
|
||||
sql: "INSERT OR IGNORE INTO plans (code, credits) VALUES (?, ?)",
|
||||
|
||||
Reference in New Issue
Block a user