projects
/
websub-hub
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'v1.3-dev' as v1.3.11
[websub-hub]
/
test
/
src
/
db
/
integration.js
diff --git
a/test/src/db/integration.js
b/test/src/db/integration.js
index b92202d41b0e30a04e759872ee984e756f95a13c..bd28e92a9124c7ba1d7cb2c0a7bc9d256e10c983 100644
(file)
--- a/
test/src/db/integration.js
+++ b/
test/src/db/integration.js
@@
-153,12
+153,15
@@
describe('Database Integration', function () {
const data = {
topicId,
leaseSecondsMin: 60,
const data = {
topicId,
leaseSecondsMin: 60,
- }
+ }
;
await db.context(async(dbCtx) => {
await db.context(async(dbCtx) => {
- let topic = await db.topicGetByUrl(dbCtx, testData.topicSet.url);
+ const expected = await db.topicGetByUrl(dbCtx, testData.topicSet.url, true);
+ expected.leaseSecondsMin = data.leaseSecondsMin;
+ let topic = await db.topicGetByUrl(dbCtx, testData.topicSet.url, false);
await db.topicUpdate(dbCtx, { ...topic, ...data });
topic = await db.topicGetByUrl(dbCtx, testData.topicSet.url);
assert.strictEqual(Number(topic.leaseSecondsMin), data.leaseSecondsMin);
await db.topicUpdate(dbCtx, { ...topic, ...data });
topic = await db.topicGetByUrl(dbCtx, testData.topicSet.url);
assert.strictEqual(Number(topic.leaseSecondsMin), data.leaseSecondsMin);
+ assert.deepEqual(topic, expected);
});
});
step('gets topic by id', async function () {
});
});
step('gets topic by id', async function () {