Function
eq
(actual: unknown, expected: unknown, name: string)
Source from the content-addressed store, hash-verified
| 97 | let failed = 0; |
| 98 | |
| 99 | function eq(actual: unknown, expected: unknown, name: string): void { |
| 100 | const a = JSON.stringify(actual); |
| 101 | const e = JSON.stringify(expected); |
| 102 | if (a === e) { |
| 103 | passed++; |
| 104 | } else { |
| 105 | failed++; |
| 106 | console.error(`✗ ${name}\n expected: ${e}\n actual: ${a}`); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | // --- secondsToSrtTime --- |
| 111 | eq(secondsToSrtTime(0), '00:00:00.000', 'srt: zero'); |
Tested by
no test coverage detected