X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=test%2Fsrc%2Fdb%2Fsqlite.js;h=0c96df364d1d4d5ecfb98b6de6e2a021a3c92a05;hb=a0d01a7dbd5ff438095980c491ddc548ee29e96a;hp=310e87ad3da7e1203b50de9f2ad3f1d19ed34405;hpb=8ba8751c41f56f0d97f3b694f89ebef568497530;p=websub-hub diff --git a/test/src/db/sqlite.js b/test/src/db/sqlite.js index 310e87a..0c96df3 100644 --- a/test/src/db/sqlite.js +++ b/test/src/db/sqlite.js @@ -339,7 +339,7 @@ describe('DatabaseSQLite', function () { describe('subscriptionsByTopicId', function () { it('success', async function () { - const expected = { count: 3 }; + const expected = [{ id: 3 }]; sinon.stub(db.statement.subscriptionsByTopicId, 'all').returns(expected); const result = await db.subscriptionsByTopicId(dbCtx, topicUrl); assert.deepStrictEqual(result, expected);