25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
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. };