summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/helpers/test_utils_tests.js
AgeCommit message (Collapse)Author
2019-08-13[IMP] web:tests: patch `Date.now`Alexandre Kühn
Before this commit, when we use `testUtils.patchDate`, the function `Date.now` was not using the fake date for reference. This is an issue with the lib momentjs, which instantiate the current date as follow: ``` new Date(Date.now()) ``` Because of this, we were handling patched date and unpatched moment objects. Task-ID 1902848