Files
starface-outlook-sync-addin/node_modules/async-hook-jl/test/test-fsaccess-disabled.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

34 lines
511 B
JavaScript

'use strict';
const asyncHook = require('../');
const assert = require('assert');
const fs = require('fs');
let called = false;
asyncHook.addHooks({
init: function () {
assert(false);
},
pre: function () {
assert(false);
},
post: function () {
assert(false);
},
destroy: function () {
assert(false);
}
});
asyncHook.enable();
asyncHook.disable();
fs.access(__filename, function () {
called = true;
});
process.once('exit', function () {
assert.equal(called, true);
});