@bitcobblers/wod-wiki-lang 0.59.2238 → 0.59.2240
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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
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
|
-
|
|
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;
|