canvas-lms/spec/coffeescripts/helpers
Ahmad Amireh 83e4f6d4ab extract date-time-moment-parser
refs FOO-1891

this is the start of a series to break apart the inter-dependencies
between timezone and moment.js

the formatting that is done by moment now stands alone in
packages/date-time-moment-parser and is used by ui/shared/timezone. The
formatter depends on phrases coming from the locale files, which are
available to ui/* but not to packages/*, so in an initializer we inject
our custom formats into the package, allowing it to make use of them.

there should be no breaking API changes, even though several APIs were
dropped, as they were all used in test but not in the app code. To
minimize the changes, a specHelpers.js file is now provided by the
timezone package that maintains backwards compat to a reasonable extent.

TEST PLAN
==== ====

although the tests should be covering this, it wouldn't hurt to manually
exercise any of the date picker widgets

Change-Id: I0c59ad2df8f7392425debb6ec448ec1b4fb029c6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/265313
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
2021-08-05 21:53:25 +00:00
..
ajax_mocks/api Handle planner notes api call in AgendaViewSpec 2020-07-31 16:19:38 +00:00
I18nStubber.js extract date-time-moment-parser 2021-08-05 21:53:25 +00:00
assertions.js spec: Run prettier on spec/coffeescripts 2019-10-10 19:33:55 +00:00
editorUtils.js rename some things 2021-04-06 01:12:49 +00:00
fakeENV.js Wait for tinyrce to initialize itself before accessing the editor 2020-03-04 20:30:59 +00:00
fixtures.js rename some things 2021-04-06 01:12:49 +00:00
getFakePage.js spec: Run prettier on spec/coffeescripts 2019-10-10 19:33:55 +00:00
jquery.simulate.js spec: Run prettier on spec/coffeescripts 2019-10-10 19:33:55 +00:00
loadFixture.js [spec][decaffeinate] convert coffe specs to js syntax 2018-02-22 16:45:17 +00:00
simulateClick.js [spec][decaffeinate] convert coffe specs to js syntax 2018-02-22 16:45:17 +00:00
stubRouterContext.js spec: Run prettier on spec/coffeescripts 2019-10-10 19:33:55 +00:00
util.js spec: Run prettier on spec/coffeescripts 2019-10-10 19:33:55 +00:00