Commit Graph
18 Commits
Author SHA1 Message Date
Sanaei afdb2b594c fix: make report:create test independent of log output and line endings
The assertion compared stdout against a template literal that could never
match:

- The file was converted from LF to CRLF in 25fa704e14, so the literal
  carries \r\n while the command's stdout uses \n.
- The literal starts with a newline, which only exists when consola prints
  its [info] lines to stdout ahead of the table. Those are suppressed unless
  DEBUG is set, so stdout begins directly at the table border.

Normalize line endings on both sides and trim the leading newline, so the
test asserts what it means to assert: that stdout contains the report table.
It now passes with and without DEBUG=true.
2026-09-04 18:39:37 +02:00
freearhey 0177d18464 Update create.test.ts 2026-08-16 22:54:11 +03:00
freearhey 850a6beeb8 Update create.test.ts 2026-03-11 07:08:13 +03:00
freearhey 45bfeb431d Update create.test.ts 2025-10-08 23:07:30 +03:00
freearhey 25fa704e14 Update create.test.ts 2025-10-08 21:24:48 +03:00
theofficialomega 59a23b743c use cross-env to send parameters in an easier manner 2025-07-30 22:48:52 +02:00
freearhey 60bbf10910 Update create.test.ts 2025-07-20 01:05:16 +03:00
freearhey 9de968a18d Update tests 2025-07-10 21:12:54 +03:00
freearhey 8e90d0eca8 Update tests 2025-05-24 19:20:09 +03:00
freearhey 4d8eb9199c Update tests 2025-05-01 00:50:53 +03:00
freearhey 88e62715e8 Update tests 2025-04-22 03:47:28 +03:00
freearhey 6d9ee99848 Update tests 2025-03-29 11:39:30 +03:00
freearhey 6036b44f6c Update create.test.ts 2025-02-27 22:05:27 +03:00
freearhey 86eda24dcc Update tests 2025-02-27 20:55:23 +03:00
freearhey f2e5b9c51c Update create.test.ts 2024-12-19 07:47:40 +03:00
freearhey 7ac9385292 Update tests 2023-09-18 18:24:13 +03:00
freearhey d169fbca8b Update tests 2023-09-17 04:07:27 +03:00
freearhey 1decbe7ac0 Update tests 2023-09-15 18:40:14 +03:00