discourse/plugins
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
..
discourse-details DEV: De-arrowify tests (#11068) 2020-10-30 17:37:32 +01:00
discourse-local-dates DEV: De-arrowify tests (#11068) 2020-10-30 17:37:32 +01:00
discourse-narrative-bot Update translations (#11087) 2020-10-30 16:06:32 +01:00
discourse-presence Update translations (#11042) 2020-10-27 15:36:21 +01:00
lazy-yt DEV: enforces eslint’s curly rule to the codebase (#10720) 2020-09-22 16:28:28 +02:00
poll DEV: De-arrowify tests (#11068) 2020-10-30 17:37:32 +01:00
styleguide Update translations (#11042) 2020-10-27 15:36:21 +01:00