Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Jan 16, 2022
1 parent aebb3a9 commit b77c973
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/config/select/apply.js → src/config/select/use.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { SELECTABLE_PROPS } from './normalize.js'
// value, based on which selector matches a given combination.
// We iterate by object key order.
// - If no selector matches, we use the last one as a fallback
export const applyConfigSelectors = function (combination, config) {
export const useConfigSelectors = function (combination, config) {
return mapObj(config, (name, configValue) => [
name,
applyConfigPropSelectors(combination, configValue, name),
Expand Down
4 changes: 2 additions & 2 deletions src/run/measure/single.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getCombinationPrefix } from '../../combination/ids/name.js'
import { applyConfigSelectors } from '../../config/select/apply.js'
import { useConfigSelectors } from '../../config/select/use.js'
import { startLogs, stopLogs, hasLogs } from '../logs/create.js'
import { addErrorTaskLogs } from '../logs/error.js'
import { startLogsStream, stopLogsStream } from '../logs/stream.js'
Expand All @@ -19,7 +19,7 @@ import { runEvents } from './events.js'
// Measure a single combination
export const measureCombination = async function ({ index, config, ...args }) {
const { previewState, combination, noDimensions } = args
const configA = applyConfigSelectors(combination, config)
const configA = useConfigSelectors(combination, config)

try {
await startCombinationPreview({
Expand Down

0 comments on commit b77c973

Please sign in to comment.