Skip to content

Commit 42ba440

Browse files
committed
Rename file
1 parent 35251c7 commit 42ba440

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/helpers/test_each/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { parseInput } from './input.js'
22
import { 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 }

test/helpers/test_each/title.js renamed to test/helpers/test_each/name.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)