(cron: Cron.Cron, lower: Date, upper: Date)
| 216 | deepStrictEqual(error.input, "") |
| 217 | } |
| 218 | ) |
| 219 | }) |
| 220 | |
| 221 | it("format preserves compact cron syntax", () => { |
| 222 | strictEqual( |
| 223 | Cron.format(Cron.parseUnsafe("23 0-20/2 * * 0", "Europe/Berlin")), |
| 224 | "23 0-20/2 * * 0" |
| 225 | ) |
| 226 | }) |
| 227 | |
| 228 | it("format can include the default seconds field", () => { |
| 229 | strictEqual( |
| 230 | Cron.format(Cron.parseUnsafe("23 0-20/2 * * 0"), { includeSeconds: true }), |
| 231 | "0 23 0-20/2 * * 0" |
no test coverage detected
searching dependent graphs…