您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

15 行
426 B

4 年前
  1. 'use strict';
  2. function settingFor(settings, propertyName, fallback) {
  3. const value = settings[`mocha/${propertyName}`];
  4. const mochaSettings = settings.mocha || {};
  5. return value || mochaSettings[propertyName] || fallback;
  6. }
  7. module.exports = {
  8. getAddtionalNames(settings) {
  9. const additionalCustomNames = settingFor(settings, 'additionalCustomNames', []);
  10. return additionalCustomNames;
  11. }
  12. };