This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/tests/unit
Jarek Radosz 09e4eb4137
DEV: Introduce a @debounce(delay) decorator (#18667)
An example from tests:

```js
class TestStub {
  counter = 0;

  @debounce(50)
  increment() {
    this.counter++;
  }
}

const stub = new TestStub();

stub.increment();
stub.increment();
stub.increment();
await settled();

assert.strictEqual(stub.counter, 1);
```
2022-10-19 20:43:58 +02:00
..
controllers DEV: Modernize controller unit tests (#17412) 2022-10-14 13:15:58 +02:00
ember DEV: Remove all use of Ember/jQuery globals in core (#18670) 2022-10-19 17:04:49 +01:00
lib A11Y: Set role=presentation if alt attr is missing (#18546) 2022-10-12 14:07:37 +03:00
mixins DEV: Deprecate assert.not() (#15595) 2022-02-09 18:49:05 +01:00
models FIX: watched topic overcome muted category (#18480) 2022-10-06 11:10:43 +11:00
routes DEV: Add tests for review-index route (#18415) 2022-10-05 12:39:35 +08:00
services DEV: Await for all async MessageBus callbacks (#17966) 2022-08-17 12:44:48 +02:00
utils DEV: Introduce a @debounce(delay) decorator (#18667) 2022-10-19 20:43:58 +02:00
localization-test.js FIX: Overriding text with admin_js.* keys didn't work (#18281) 2022-09-20 10:47:57 +10:00