replace jest with ava
This commit is contained in:
parent
27cc8b23fe
commit
0347b72305
11775 changed files with 84546 additions and 1440575 deletions
16
node_modules/ava/lib/environment-variables.js
generated
vendored
Normal file
16
node_modules/ava/lib/environment-variables.js
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
'use strict';
|
||||
function validateEnvironmentVariables(environmentVariables) {
|
||||
if (!environmentVariables) {
|
||||
return {};
|
||||
}
|
||||
|
||||
for (const value of Object.values(environmentVariables)) {
|
||||
if (typeof value !== 'string') {
|
||||
throw new TypeError('The ’environmentVariables’ configuration must be an object containing string values.');
|
||||
}
|
||||
}
|
||||
|
||||
return environmentVariables;
|
||||
}
|
||||
|
||||
module.exports = validateEnvironmentVariables;
|
||||
Loading…
Add table
Add a link
Reference in a new issue