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);
```
|
||
|---|---|---|
| .. | ||
| acceptance | ||
| addons/truth-helpers/integration/helpers | ||
| fixtures | ||
| helpers | ||
| integration | ||
| unit | ||
| index.html | ||
| setup-tests.js | ||
| test-boot-ember-cli.js | ||