MCPcopy Create free account
hub / github.com/dresende/node-orm2 / checkHook

Function checkHook

test/integration/event.js:11–17  ·  view source on GitHub ↗
(hook)

Source from the content-addressed store, hash-verified

9 var triggeredHooks = {};
10
11 var checkHook = function (hook) {
12 triggeredHooks[hook] = false;
13
14 return function () {
15 triggeredHooks[hook] = Date.now();
16 };
17 };
18
19 var setup = function (hooks) {
20 return function (done) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected