fix a test that was still using feed-v1

This commit is contained in:
Andre Staltz 2023-06-14 10:27:42 +03:00
parent 302bfa81f8
commit 78a6f2216c
No known key found for this signature in database
GPG Key ID: 9EDE23EA7E8A4890
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ const rimraf = require('rimraf')
const SecretStack = require('secret-stack') const SecretStack = require('secret-stack')
const caps = require('ssb-caps') const caps = require('ssb-caps')
const p = require('util').promisify const p = require('util').promisify
const FeedV1 = require('../lib/feed-v1') const MsgV2 = require('../lib/msg-v2')
const { generateKeypair } = require('./util') const { generateKeypair } = require('./util')
const DIR = path.join(os.tmpdir(), 'ppppp-db-get') const DIR = path.join(os.tmpdir(), 'ppppp-db-get')
@ -31,8 +31,8 @@ test('setup', async (t) => {
type: 'post', type: 'post',
data: { text: 'I am 1st post' }, data: { text: 'I am 1st post' },
}) })
msgHash1 = FeedV1.getMsgHash(rec1.msg) msgHash1 = MsgV2.getMsgHash(rec1.msg)
msgId1 = FeedV1.getMsgId(rec1.msg) msgId1 = MsgV2.getMsgId(rec1.msg)
}) })
test('get() supports ppppp URIs', async (t) => { test('get() supports ppppp URIs', async (t) => {