replace jest with ava
This commit is contained in:
parent
27cc8b23fe
commit
0347b72305
11775 changed files with 84546 additions and 1440575 deletions
17
node_modules/ava/lib/worker/options.js
generated
vendored
Normal file
17
node_modules/ava/lib/worker/options.js
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