@bitcobblers/wod-wiki-lang 0.59.2238 → 0.59.2243

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -5654,7 +5654,8 @@ function createMockClock(initialTime = /* @__PURE__ */ new Date()) {
5654
5654
  return currentTime.getTime();
5655
5655
  },
5656
5656
  get elapsed() {
5657
- return spans.reduce((total, span) => total + span.duration, 0);
5657
+ const currentMs = currentTime.getTime();
5658
+ return spans.reduce((total, span) => total + ((span.ended ?? currentMs) - span.started), 0);
5658
5659
  },
5659
5660
  get isRunning() {
5660
5661
  if (spans.length === 0) return false;