mirror of https://codeberg.org/pzp/pzp-gc.git
minor refactor in tests
This commit is contained in:
parent
7b1119795e
commit
1e04bccf9f
|
@ -7,7 +7,7 @@ function getTexts(msgs) {
|
||||||
return msgs.filter((msg) => msg.data?.text).map((msg) => msg.data.text)
|
return msgs.filter((msg) => msg.data?.text).map((msg) => msg.data.text)
|
||||||
}
|
}
|
||||||
|
|
||||||
test('feed decay', async (t) => {
|
test('Feed decay', async (t) => {
|
||||||
const alice = createPeer({
|
const alice = createPeer({
|
||||||
name: 'alice',
|
name: 'alice',
|
||||||
gc: { maxLogBytes: 100 * 1024 * 1024 },
|
gc: { maxLogBytes: 100 * 1024 * 1024 },
|
||||||
|
|
|
@ -7,7 +7,7 @@ function getTexts(msgs) {
|
||||||
return msgs.filter((msg) => msg.data?.text).map((msg) => msg.data.text)
|
return msgs.filter((msg) => msg.data?.text).map((msg) => msg.data.text)
|
||||||
}
|
}
|
||||||
|
|
||||||
test('feed holes', async (t) => {
|
test('Feed holes', async (t) => {
|
||||||
const alice = createPeer({
|
const alice = createPeer({
|
||||||
name: 'alice',
|
name: 'alice',
|
||||||
gc: { maxLogBytes: 100 * 1024 * 1024 },
|
gc: { maxLogBytes: 100 * 1024 * 1024 },
|
||||||
|
|
|
@ -11,7 +11,7 @@ function getTexts(msgs) {
|
||||||
return msgs.filter((msg) => msg.data?.text).map((msg) => msg.data.text)
|
return msgs.filter((msg) => msg.data?.text).map((msg) => msg.data.text)
|
||||||
}
|
}
|
||||||
|
|
||||||
test('orphan weave msgs', async (t) => {
|
test('Orphan weave msgs', async (t) => {
|
||||||
const alice = createPeer({
|
const alice = createPeer({
|
||||||
name: 'alice',
|
name: 'alice',
|
||||||
gc: { maxLogBytes: 100 * 1024 * 1024 },
|
gc: { maxLogBytes: 100 * 1024 * 1024 },
|
||||||
|
|
Loading…
Reference in New Issue