timekeeper
Advanced tools
Comparing version
{ | ||
"name": "timekeeper", | ||
"description": "Easy testing of time-dependent code.", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "fake date", |
@@ -157,2 +157,6 @@ /** | ||
if (freeze) { | ||
timekeeper.freeze(date) | ||
} | ||
travel = date.getTime(); | ||
@@ -159,0 +163,0 @@ started = NativeDate.now(); |
{ | ||
"name": "timekeeper", | ||
"description": "Easy testing of time-dependent code.", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "fake date", |
@@ -17,3 +17,3 @@ # timekeeper | ||
- Please note, that if you are using time freezing, `setTimeout` and | ||
`setInteval` won't work as expected, since they are using the `Date` | ||
`setInterval` won't work as expected, since they are using the `Date` | ||
class, but the time will not change until you call `timekeeper#reset`. | ||
@@ -65,2 +65,4 @@ | ||
Note: If traveling when time is frozen, the time will be frozen to the new traveled time. | ||
### Reflection: | ||
@@ -96,3 +98,3 @@ | ||
$ mversion <patch | minor | major> | ||
$ git push && git push --tags | ||
$ git push --follow-tags | ||
$ npm publish | ||
@@ -99,0 +101,0 @@ ``` |
127
1.6%9688
-25.52%7
-36.36%210
-29.29%