UNPKG

ava

Version:

Testing can be a drag. AVA helps you get it done.

17 lines (13 loc) 420 B
'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;