mirror of
https://github.com/Permissionless-Software-Foundation/psf-memo.git
synced 2026-09-21 16:52:01 -07:00
Add unit coverage for the notification height/seen defaults, the seen sort tie-break, the missing-status cutoff, and the config flags; refresh the language mutation manifests and the soft Gherkin acceptance mutation manifests for the three affected feature files. By architect.
16 lines
481 B
JavaScript
16 lines
481 B
JavaScript
import { assert } from 'chai'
|
|
import common from '../../config/env/common.js'
|
|
|
|
describe('#config', () => {
|
|
it('should disable mongo and IPFS for the LevelDB-only build', () => {
|
|
assert.equal(common.noMongo, true)
|
|
assert.equal(common.useIpfs, false)
|
|
})
|
|
|
|
it('should default the notification block window to 25000 when unset', () => {
|
|
if (process.env.NOTIFICATION_BLOCK_WINDOW === undefined) {
|
|
assert.equal(common.notificationBlockWindow, 25000)
|
|
}
|
|
})
|
|
})
|