File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import { parseInput } from './input.js'
22import { getArgs } from './args.js'
3- import { getTitles } from './title .js'
3+ import { getNames } from './name .js'
44
55// Repeat a function with a combination of arguments.
66// Meant for test-driven development.
@@ -9,9 +9,9 @@ export const testEach = function(...inputArgs) {
99
1010 const args = getArgs ( iterables )
1111
12- const titles = getTitles ( args )
12+ const names = getNames ( args )
1313
14- const results = args . map ( ( values , index ) => func ( titles [ index ] , ...values ) )
14+ const results = args . map ( ( values , index ) => func ( names [ index ] , ...values ) )
1515
1616 // Can use `Promise.all(results)` if `func` is async
1717 return { args, results }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { serializeArg } from './serialize.js'
55// for example with `Array.map()`.
66// To customize whole titles, generate them inside the iterated function using
77// all values.
8- export const getTitles = function ( args ) {
8+ export const getNames = function ( args ) {
99 return args . map ( getTitle ) . map ( fixDuplicate )
1010}
1111
You can’t perform that action at this time.
0 commit comments