1var t = require('tap') 2if (/0\.(10|8)/.test(process.version)) { 3 t.pass('just a dummy test, no beforeExit in this node version') 4} else { 5 process.on('beforeExit', function (code) { 6 t.equal(code, 0, 'did not throw') 7 }) 8} 9var lf = require('lockfile') 10lf.unlock('no-file-no-cb') 11