1
- // @ts-ignore @ember/modifier does not provide types :(
2
- import { on } from ' @ember/modifier' ;
3
- import { setOwner } from ' @ember/owner' ;
4
- import { click , render } from ' @ember/test-helpers' ;
5
1
import { module , test } from ' qunit' ;
6
- import { setupRenderingTest , setupTest } from ' ember-qunit' ;
2
+ import { setupTest } from ' ember-qunit' ;
7
3
8
4
import { resource } from ' ember-resources' ;
9
5
6
+ import { compatOwner } from ' ../helpers' ;
7
+
10
8
module (' RAW' , function (hooks ) {
11
9
setupTest (hooks );
12
10
13
11
test (' in plain js' , async function (assert ) {
14
12
let thing = resource (() => 2 );
15
13
let parent = {};
16
14
17
- setOwner (parent , this .owner );
15
+ compatOwner . setOwner (parent , this .owner );
18
16
17
+ // @ts-expect-error - not sure what to bo about the type discrepency atm
19
18
let instance = thing .create ();
20
19
21
20
instance .link (parent );
@@ -26,6 +25,7 @@ module('RAW', function (hooks) {
26
25
let thing = resource (() => 2 );
27
26
28
27
assert .throws (() => {
28
+ // @ts-expect-error - not sure what to bo about the type discrepency atm
29
29
let instance = thing .create ();
30
30
31
31
instance .current ;
@@ -36,6 +36,7 @@ module('RAW', function (hooks) {
36
36
let thing = resource (() => 2 );
37
37
38
38
assert .throws (() => {
39
+ // @ts-expect-error - not sure what to bo about the type discrepency atm
39
40
let instance = thing .create ();
40
41
41
42
instance .link ({});
0 commit comments