MCPcopy Create free account
hub / github.com/Effect-TS/effect / format

Function format

packages/effect/test/Cron.test.ts:262–270  ·  view source on GitHub ↗
(seconds?: Iterable<number>)

Source from the content-addressed store, hash-verified

260
261 it("format handles default, non-default, and unrestricted seconds", () => {
262 const format = (seconds?: Iterable<number>) =>
263 Cron.format(Cron.make({
264 seconds,
265 minutes: [],
266 hours: [],
267 days: [],
268 months: [],
269 weekdays: []
270 }))
271
272 strictEqual(format(), "* * * * *")
273 strictEqual(format([15, 30]), "15,30 * * * * *")

Callers 2

Cron.test.tsFile · 0.70

Calls 1

makeMethod · 0.65

Tested by

no test coverage detected