discourse/plugins/poll
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
..
app FEATURE: Add the title attribute to polls (#10759) 2020-10-02 09:21:24 +02:00
assets FIX: pretty text allow list (#10977) 2020-10-28 13:22:06 +11:00
config Update translations (#11087) 2020-10-30 16:06:32 +01:00
db FEATURE: Add the title attribute to polls (#10759) 2020-10-02 09:21:24 +02:00
jobs/regular DEV: Upgrading Discourse to Zeitwerk (#8098) 2019-10-02 14:01:53 +10:00
lib FEATURE: Add the title attribute to polls (#10759) 2020-10-02 09:21:24 +02:00
spec FIX: Handle poll titles when headings are present (#10832) 2020-10-06 13:24:38 +02:00
test/javascripts DEV: De-arrowify tests (#11068) 2020-10-30 17:37:32 +01:00
plugin.rb FEATURE: Add the title attribute to polls (#10759) 2020-10-02 09:21:24 +02:00