Skip to content

Commit b51137b

Browse files
committed
Update test styles
1 parent 265d66f commit b51137b

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

map.test.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,16 @@ describe('Map.groupBy()', () => {
7676
const map = Map.groupBy(inventory, ({ quantity }) =>
7777
quantity < 10 ? restock : sufficient,
7878
);
79-
console.log(style.h1('The Map.groupBy() static method groups the elements of a given iterable using the values returned by a provided callback function. The final returned Map uses the unique values from the test function as keys, which can be used to get the array of elements in each group\n'));
8079

81-
console.log(style.h2('Given an iterable (inventory):\n\n'),
80+
console.log(style.h1('# The Map.groupBy() static method groups the elements of a given iterable using the values returned by a provided callback function. The final returned Map uses the unique values from the test function as keys, which can be used to get the array of elements in each group\n'));
81+
82+
console.log(style.h2('## Given an iterable (inventory):\n\n'),
8283
inventory, '\n');
8384

84-
console.log(style.h2('..And grouping values (restock, sufficient):\n\n'), restock, '\n', sufficient, '\n');
85+
console.log(style.h2('## ..And grouping values (restock, sufficient):\n\n'), restock, '\n', sufficient, '\n');
8586

8687
console.log(style.h2(
87-
`..Using \`Map.groupBy()\` with a cb that conditionally returns
88+
`## ..Using \`Map.groupBy()\` with a cb that conditionally returns
8889
the grouping values for each inventory item:
8990
${style.green}
9091
Map.groupBy(inventory, ({ quantity }) =>
@@ -93,7 +94,7 @@ ${style.green}
9394
${style.reset}`), );
9495

9596
console.log(style.h2(
96-
`..Will give use the result (Map):\n`));
97+
`## ..Will give use the result (Map):\n`));
9798
console.log(map);
9899

99100
});

0 commit comments

Comments
 (0)