mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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);
```