UNPKG

ava

Version:

Node.js test runner that lets you develop with confidence.

17 lines (13 loc) 268 B
let options = null; export function get() { if (!options) { throw new Error('Options have not yet been set'); } return options; } export function set(newOptions) { if (options) { throw new Error('Options have already been set'); } options = newOptions; }