require('proof')(1, prove)

function prove (okay) {
    var hangup = require('../hangup')

    require('prolific.sink').json = function (level, qualifier, label, entry) {
        okay({
            level: level,
            qualifier: qualifier,
            label: label,
            entry: entry
        }, {
            level: 'error',
            qualifier: 'olio',
            label: 'label',
            entry: { label: 'label', value: 1 }
        }, 'error')
    }
    hangup({ label: 'label', value: 1 })
}

require('proof')(1, prove)

function prove (okay) {
    var hangup = require('../hangup')

    require('prolific.sink').json = function (level, qualifier, label, entry) {
        okay({
            level: level,
            qualifier: qualifier,
            label: label,
            entry: entry
        }, {
            level: 'error',
            qualifier: 'olio',
            label: 'hangup',
            entry: { stack: 'stack' }
        }, 'error')
    }
    hangup({ stack: 'stack' })
}

Fix `test/hangup.t.js` unit test.