discourse/plugins/discourse-local-dates
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
..
assets FIX: pretty text allow list (#10977) 2020-10-28 13:22:06 +11:00
config Update translations (#10944) 2020-10-17 00:07:21 +02:00
lib/discourse_local_dates DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
spec FIX: converts “ and ” to " in local dates (#10987) 2020-10-21 17:16:36 +02:00
test/javascripts DEV: De-arrowify tests (#11068) 2020-10-30 17:37:32 +01:00
plugin.rb REFACTOR: local dates to improve reliability with DST and recurrence (#9379) 2020-04-08 08:53:21 +02:00