• Robert Knight's avatar
    Use mock `Intl` to test `formatDate` in tests · 3b9a71b3
    Robert Knight authored
    This uses the real `Intl.DateTimeFormat` API but with a fixed locale to
    ensure consistent output across systems. This is a more complete test
    than the previous one.
    
    The test assumes that output is consistent across browsers for the date
    given. In testing with Safari, Firefox and Chrome this was the case for
    the en-US locale. We accept some small risk that the exact format might change
    slightly in future releases of one of these browsers.
    3b9a71b3
Name
Last commit
Last update
..
collections-test.js Loading commit data...
copy-to-clipboard-test.js Loading commit data...
disable-opener-for-external-links-test.js Loading commit data...
dom-test.js Loading commit data...
immutable-test.js Loading commit data...
memoize-test.js Loading commit data...
oauth-client-test.js Loading commit data...
observe-element-size-test.js Loading commit data...
pagination-test.js Loading commit data...
postmessage-json-rpc-test.js Loading commit data...
random-test.js Loading commit data...
retry-test.js Loading commit data...
search-filter-test.js Loading commit data...
sentry-test.js Loading commit data...
time-test.js Loading commit data...
unicode-test.js Loading commit data...
url-test.js Loading commit data...
watch-test.js Loading commit data...