discourse/app/assets/javascripts/wizard
Jarek Radosz a17d54d0bf
DEV: De-arrowify tests (#11068)
Using arrow functions changes `this` context, which is undesired in tests, e.g. it makes it impossible to setup things like pretender (`this.server`) in `beforeEach` hooks.

Ember guides always use classic functions in examples (e.g. https://guides.emberjs.com/release/testing/test-types/), and that's what it uses in its own test suite, as do various addons and ember apps.

It was also already used in Discourse where `this` was required. Moving forward, it will be needed in more places as we migrate toward ember-cli.

(I might later add a custom rule to eslint-discourse-ember to enforce this)
2020-10-30 17:37:32 +01:00
..
components DEV: Do not render header in wizard preview when logo is missing (#10835) 2020-10-06 12:08:41 -04:00
controllers FEATURE: Separate base and heading font site_settings (#10807) 2020-10-05 13:40:41 -04:00
initializers DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
lib FIX: Wizard theme preview when logo is missing (#10914) 2020-10-13 20:06:09 -04:00
mixins DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
models FEATURE: Separate base and heading font site_settings (#10807) 2020-10-05 13:40:41 -04:00
routes DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
templates REVERT: revert change from action + mut to mut (#10844) 2020-10-06 23:50:05 +02:00
test DEV: De-arrowify tests (#11068) 2020-10-30 17:37:32 +01:00
router.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00
wizard.js DEV: apply new coding standards (#10592) 2020-09-04 13:42:47 +02:00