* Get current config. * @param {string} [key] * @param {*} [val] * @return {*}
(key, val)
| 137 | * @return {*} |
| 138 | */ |
| 139 | static get(key, val) { |
| 140 | if (key) { |
| 141 | return config[key] || val |
| 142 | } |
| 143 | return config |
| 144 | } |
| 145 | |
| 146 | static addHook(fn) { |
| 147 | hooks.push({ fn, ran: false }) |
no outgoing calls
no test coverage detected