Skip to content

Commit da373ac

Browse files
authored
Merge pull request #31 from joinpursuit/test-description-clarification
Renames to match new description.
2 parents 01c1235 + ee8f3a6 commit da373ac

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

_tests_/array-methods.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {
77
firstWordLongerThan4Char,
88
logValuesTimes3,
99
logWordsWithExclamation,
10-
arrayValuesTimes100TimesIndex,
10+
arrayValuesSquaredTimesIndex,
1111
arrayWordsUpcased,
1212
areSomeNumsDivisibleBy7,
1313
doSomeWordsHaveAnA,
@@ -69,8 +69,8 @@ describe("Array Methods", () => {
6969
});
7070

7171
test("A new array of values that are squared and then multiplied by their index number", () => {
72-
expect(/\.map/.test(arrayValuesTimes100TimesIndex.toString())).toBe(true);
73-
expect(arrayValuesTimes100TimesIndex(nums)).toStrictEqual([
72+
expect(/\.map/.test(arrayValuesSquaredTimesIndex.toString())).toBe(true);
73+
expect(arrayValuesSquaredTimesIndex(nums)).toStrictEqual([
7474
0, 4, 18, 48, 100, 180, 294, 448, 648, 900, 0,
7575
]);
7676
});

solution.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const logWordsWithExclamation = () => {
4141

4242
// Map
4343

44-
const arrayValuesTimes100TimesIndex = () => {
44+
const arrayValuesSquaredTimesIndex = () => {
4545
//
4646
};
4747

@@ -68,7 +68,7 @@ module.exports = {
6868
firstWordLongerThan4Char,
6969
logValuesTimes3,
7070
logWordsWithExclamation,
71-
arrayValuesTimes100TimesIndex,
71+
arrayValuesSquaredTimesIndex,
7272
arrayWordsUpcased,
7373
areSomeNumsDivisibleBy7,
7474
doSomeWordsHaveAnA,

0 commit comments

Comments
 (0)