| 22 | ]) |
| 23 | |
| 24 | const extractValues = x => ({ |
| 25 | years: x.years || 0, |
| 26 | months: x.months || 0, |
| 27 | weeks: x.weeks || 0, |
| 28 | days: x.days || 0, |
| 29 | hours: x.hours || 0, |
| 30 | minutes: x.minutes || 0, |
| 31 | seconds: x.seconds || 0, |
| 32 | }) |
| 33 | for (const {input, ...expected} of tests) { |
| 34 | test(`${input} -> from(${JSON.stringify(expected)})`, () => { |
| 35 | assert.deepEqual(extractValues(Temporal.Duration.from(input)), extractValues(expected)) |
no outgoing calls
no test coverage detected
searching dependent graphs…