wallet-core/node_modules/tmp/test/graceful.js
Florian Dold bd65bb67e2 incrementally verify denoms
The denominations are not stored in a separate object store.
2016-11-16 02:00:31 +01:00

16 lines
265 B
JavaScript

var
tmp = require('../lib/tmp'),
spawn = require('./spawn');
var graceful = spawn.arg;
if (graceful) {
tmp.setGracefulCleanup();
}
spawn.tmpFunction(function (err, name) {
spawn.out(name, function () {
throw new Error('Thrown on purpose');
});
});