Skip to content

Commit f022f4a

Browse files
committed
Fix log styles
1 parent 74257c7 commit f022f4a

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

map.test.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -77,26 +77,28 @@ describe('Map.groupBy()', () => {
7777
quantity < 10 ? restock : sufficient,
7878
);
7979

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'));
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'));
8181

82-
console.log(style.h2(`## Given an iterable (inventory):\n\n`),
83-
inventory, '\n');
82+
console.log(style.h2(`## Given an iterable (inventory):\n`));
83+
console.log(inventory, '\n');
8484

85-
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`));
86+
console.log(restock);
87+
console.log(sufficient, '\n');
8688

8789
console.log(style.h2(
8890
`## ..Using \`Map.groupBy()\` with a cb that conditionally returns
89-
the grouping values for each inventory item:
90-
${style.green}
91+
the grouping values for each inventory item:`));
92+
93+
console.log(`${style.green}
9194
Map.groupBy(inventory, ({ quantity }) =>
9295
quantity < 10 ? restock : sufficient,
9396
);
94-
${style.reset}`), );
97+
${style.reset}`);
9598

9699
console.log(style.h2(
97100
`## ..Will give use the result (Map):\n`));
98101
console.log(map);
99-
100102
});
101103

102104
it('should filter inventory using `Map.groupBy()`', () => {

0 commit comments

Comments
 (0)