UNPKG

splitster

Version:
17 lines (14 loc) 309 B
import * as R from "ramda"; const disableByConfig = ([testId, test]) => { if (test.disabled && !test.disabledReason) { return [ testId, R.merge(test, { disabled: true, disabledReason: "config" }) ]; } return [testId, test]; }; export default disableByConfig;