* test: added newly cases to cover codeCov
* test: added new cases of empty posts
* test: added test cases of legacy topics
* refactor: removed extra lines and extra const objects
* test: added test cases for postPreviewpane
* test: added test cases for post comment view api
* refactor: removed extra lines and code
* refactor: fixed issues identified during code review
* refactor: changed description of one test case
---------
Co-authored-by: sundasnoreen12 <sundasnoreen12@ggmail.com>
(This reintroduces the change in 9f84230c that was later reverted by
67b0b33a.)
frontend-platform supports runtime configuration since 2.5.0 (see the PR
that introduced it[1], but it requires MFE cooperation. This implements
just that: by avoiding making configuration values constant, it should
now be possible to change them after initialization.
Almost all changes here relate to the `LMS_BASE_URL` setting, which in
most places was treated as a constant.
[1] https://github.com/openedx/frontend-platform/pull/335
frontend-platform supports runtime configuration since 2.5.0 (see the PR
that introduced it[1], but it requires MFE cooperation. This implements
just that: by avoiding making configuration values constant, it should
now be possible to change them after initialization.
Almost all changes here relate to the `LMS_BASE_URL` setting, which in
most places was treated as a constant.
[1] https://github.com/openedx/frontend-platform/pull/335
* fix: remove discussions from the base path
Remove the discussions prefix from the base path to avoid potential repeat of that
word the path when deployed.