This repository was archived by the owner on Nov 1, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ module.exports = function() {
21
21
npm : {
22
22
devDependencies : {
23
23
'@ember/jquery' : '^0.5.1' ,
24
+ 'ember-decorators-polyfill' : '^1.0.5' ,
24
25
'ember-source' : '~2.18.0'
25
26
}
26
27
}
@@ -29,6 +30,7 @@ module.exports = function() {
29
30
name : 'ember-lts-3.4' ,
30
31
npm : {
31
32
devDependencies : {
33
+ 'ember-decorators-polyfill' : '^1.0.5' ,
32
34
'ember-source' : '~3.4.0'
33
35
}
34
36
}
@@ -37,6 +39,7 @@ module.exports = function() {
37
39
name : 'ember-lts-3.8' ,
38
40
npm : {
39
41
devDependencies : {
42
+ 'ember-decorators-polyfill' : '^1.0.5' ,
40
43
'ember-source' : '~3.8.0'
41
44
}
42
45
}
Original file line number Diff line number Diff line change 1
1
import { task , timeout } from 'ember-concurrency' ;
2
2
import { module , test } from 'qunit' ;
3
+ import { get } from '@ember/object' ;
3
4
4
5
module ( 'Unit | task' , function ( ) {
5
6
test ( 'simple task' , async function ( assert ) {
@@ -14,7 +15,10 @@ module('Unit | task', function() {
14
15
} ) ;
15
16
16
17
async perform ( ) {
17
- const returnValue : 'foo' = await this . someTask . perform ( 1 , 'foo' ) ;
18
+ const returnValue : 'foo' = await get ( this , 'someTask' ) . perform (
19
+ 1 ,
20
+ 'foo'
21
+ ) ;
18
22
assert . strictEqual ( returnValue , 'foo' ) ;
19
23
}
20
24
}
You can’t perform that action at this time.
0 commit comments