Upgrade Ava to v4
This commit is contained in:
parent
9a40cc5274
commit
ce89f1b611
1153 changed files with 27264 additions and 95308 deletions
17
node_modules/ava/lib/worker/options.cjs
generated
vendored
Normal file
17
node_modules/ava/lib/worker/options.cjs
generated
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
'use strict';
|
||||
let options = null;
|
||||
exports.get = () => {
|
||||
if (!options) {
|
||||
throw new Error('Options have not yet been set');
|
||||
}
|
||||
|
||||
return options;
|
||||
};
|
||||
|
||||
exports.set = newOptions => {
|
||||
if (options) {
|
||||
throw new Error('Options have already been set');
|
||||
}
|
||||
|
||||
options = newOptions;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue