mirror of https://codeberg.org/pzp/pzp-goals.git
update tests
This commit is contained in:
parent
aee242981f
commit
4b10d13862
|
@ -93,21 +93,21 @@ test('getMsgPurpose', async (t) => {
|
||||||
|
|
||||||
const post1 = await p(alice.db.feed.publish)({
|
const post1 = await p(alice.db.feed.publish)({
|
||||||
account: aliceID,
|
account: aliceID,
|
||||||
domain: 'post',
|
domain: 'posts',
|
||||||
data: { text: 'm1' },
|
data: { text: 'm1' },
|
||||||
})
|
})
|
||||||
const post2 = await p(alice.db.feed.publish)({
|
const post2 = await p(alice.db.feed.publish)({
|
||||||
account: aliceID,
|
account: aliceID,
|
||||||
domain: 'post',
|
domain: 'posts',
|
||||||
data: { text: 'm2' },
|
data: { text: 'm2' },
|
||||||
})
|
})
|
||||||
const post3 = await p(alice.db.feed.publish)({
|
const post3 = await p(alice.db.feed.publish)({
|
||||||
account: aliceID,
|
account: aliceID,
|
||||||
domain: 'post',
|
domain: 'posts',
|
||||||
data: { text: 'm3' },
|
data: { text: 'm3' },
|
||||||
})
|
})
|
||||||
|
|
||||||
const feedID = alice.db.feed.getID(aliceID, 'post')
|
const feedID = alice.db.feed.getID(aliceID, 'posts')
|
||||||
|
|
||||||
alice.goals.set(feedID, 'all')
|
alice.goals.set(feedID, 'all')
|
||||||
const gottenGoal = alice.goals.get(feedID)
|
const gottenGoal = alice.goals.get(feedID)
|
||||||
|
|
Loading…
Reference in New Issue