Skip to content

Commit 1ecfbc0

Browse files
committed
ope
1 parent 0a2d725 commit 1ecfbc0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/test-app/tests/utils/interval-test.gts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { setupRenderingTest } from 'ember-qunit';
77
import { cell, use } from 'ember-resources';
88
import { Duration, Interval, Seconds } from 'reactiveweb/interval';
99

10-
function timeout(ms) {
10+
function timeout(ms: number) {
1111
return new Promise((resolve) => setTimeout(resolve, ms));
1212
}
1313

@@ -43,8 +43,8 @@ module('Interval | rendering', function (hooks) {
4343
test('it works', async function (assert) {
4444
const config = {
4545
create: () => cell('hello'),
46-
update: (x) => (x.current += '!'),
47-
read: (x) => x.current,
46+
update: (x: ReturnType<typeof cell<string>>) => (x.current += '!'),
47+
read: (x: ReturnType<typeof cell<string>>) => x.current,
4848
};
4949

5050
await render(<template>{{Interval 50 config}}</template>);
@@ -93,7 +93,7 @@ module('Seconds | rendering', function (hooks) {
9393
module('Duration | js', function (hooks) {
9494
setupRenderingTest(hooks);
9595

96-
const text = () => find('out').textContent;
96+
const text = () => find('out')?.textContent;
9797

9898
test('it works', async function (assert) {
9999
class Test extends Component {
@@ -115,7 +115,7 @@ module('Duration | js', function (hooks) {
115115
module('Duration | rendering', function (hooks) {
116116
setupRenderingTest(hooks);
117117

118-
const text = () => find('out').textContent;
118+
const text = () => find('out')?.textContent;
119119

120120
test('it works', async function (assert) {
121121
await render(

0 commit comments

Comments
 (0)