Skip to content

Commit 97f8347

Browse files
committed
remove logs
1 parent 8219814 commit 97f8347

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

src/formatters/formatProgress.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ describe.skip("formatProgress", () => {
66
const bigArray = Array.from({ length: 1000 }, (_, i) => i);
77
const progressId = "visual-test";
88

9-
console.log("\n=== Processing 1000 items ===\n");
9+
console.info("\n=== Processing 1000 items ===\n");
1010

1111
for (let i = 0; i < bigArray.length; i++) {
1212
// Simulate some work to make timing realistic
@@ -25,33 +25,33 @@ describe.skip("formatProgress", () => {
2525
i === 999
2626
) {
2727
const progress = formatProgress(i, bigArray.length, { progressId });
28-
console.log(`Item ${i}: ${progress}`);
28+
console.info(`Item ${i}: ${progress}`);
2929
}
3030
}
3131

32-
console.log("\n=== Complete! ===\n");
32+
console.info("\n=== Complete! ===\n");
3333
});
3434

3535
it("visual test without progressId (no time estimation)", () => {
3636
const bigArray = Array.from({ length: 100 }, (_, i) => i);
3737

38-
console.log("\n=== Without time estimation ===\n");
38+
console.info("\n=== Without time estimation ===\n");
3939

4040
for (let i = 0; i < bigArray.length; i++) {
4141
if (i % 25 === 0 || i === 99) {
4242
const progress = formatProgress(i, bigArray.length);
43-
console.log(`Item ${i}: ${progress}`);
43+
console.info(`Item ${i}: ${progress}`);
4444
}
4545
}
4646

47-
console.log("\n=== Complete! ===\n");
47+
console.info("\n=== Complete! ===\n");
4848
});
4949

5050
it("visual test with multiple concurrent progress trackers", async () => {
5151
const array1 = Array.from({ length: 100 }, (_, i) => i);
5252
const array2 = Array.from({ length: 50 }, (_, i) => i);
5353

54-
console.log("\n=== Processing multiple arrays concurrently ===\n");
54+
console.info("\n=== Processing multiple arrays concurrently ===\n");
5555

5656
for (let i = 0; i < Math.max(array1.length, array2.length); i++) {
5757
await sleep(1);
@@ -60,17 +60,17 @@ describe.skip("formatProgress", () => {
6060
const progress = formatProgress(i, array1.length, {
6161
progressId: "array1",
6262
});
63-
console.log(`Array 1, Item ${i}: ${progress}`);
63+
console.info(`Array 1, Item ${i}: ${progress}`);
6464
}
6565

6666
if (i < array2.length && i % 10 === 0) {
6767
const progress = formatProgress(i, array2.length, {
6868
progressId: "array2",
6969
});
70-
console.log(`Array 2, Item ${i}: ${progress}`);
70+
console.info(`Array 2, Item ${i}: ${progress}`);
7171
}
7272
}
7373

74-
console.log("\n=== Complete! ===\n");
74+
console.info("\n=== Complete! ===\n");
7575
});
7676
});

src/helpers/parseDate.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ export const parseDate = (
5858
}
5959
}
6060

61-
console.log(arg);
62-
6361
const date = new Date(arg!); // ! => isEmpty cannot narrow type
6462

6563
if (!isJsDate(date)) return;

src/validators/isSameUTCDay.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export const isSameUTCDay = (
1919
const date2UTC = parseDate(date2Input, { asUTC: true });
2020
if (!date1UTC || !date2UTC) return false;
2121

22-
console.log(date1UTC.toISOString(), date2UTC.toISOString());
2322
return (
2423
date1UTC.getUTCFullYear() === date2UTC.getUTCFullYear() &&
2524
date1UTC.getUTCMonth() === date2UTC.getUTCMonth() &&

0 commit comments

Comments
 (0)