X-Git-Url: http://git.squeep.com/?p=websub-hub;a=blobdiff_plain;f=test%2Fsrc%2Fdb%2Fpostgres.js;fp=test%2Fsrc%2Fdb%2Fpostgres.js;h=d6bf6746524e88275078233d041195b356d4f966;hp=626b0c2573a145f1727e6cc5e099e06e16d1cdc1;hb=92661d6fa967999e7e12e86a2f4d5ce314a02c9b;hpb=f3e42bc1c361f932ccbc0e40d3692cdbb77ee437 diff --git a/test/src/db/postgres.js b/test/src/db/postgres.js index 626b0c2..d6bf674 100644 --- a/test/src/db/postgres.js +++ b/test/src/db/postgres.js @@ -141,7 +141,7 @@ describe('DatabasePostgres', function () { columnTwo: 4, }, ]; - db.pgpInitOptions.receive(data, result, event) + db.pgpInitOptions.receive({ data, result, ctx: event }); assert(db.logger.debug.called); assert.deepStrictEqual(data, expectedData); }); @@ -170,7 +170,7 @@ describe('DatabasePostgres', function () { columnTwo: 4, }, ]; - db.pgpInitOptions.receive(data, result, event) + db.pgpInitOptions.receive({ data, result, ctx: event }); assert(!db.logger.debug.called); assert.deepStrictEqual(data, expectedData); });