@@ -20,8 +20,7 @@ module('Component | OwnersList', function (hooks) {
2020
2121 let store = this . owner . lookup ( 'service:store' ) ;
2222 this . crate = await store . findRecord ( 'crate' , crate . name ) ;
23- await this . crate . hasMany ( 'owner_team' ) . load ( ) ;
24- await this . crate . hasMany ( 'owner_user' ) . load ( ) ;
23+ await this . crate . loadOwnersTask . perform ( ) ;
2524
2625 await render ( hbs `<OwnersList @owners={{this.crate.owners}} />` ) ;
2726 assert . dom ( '[data-test-owners="detailed"]' ) . exists ( ) ;
@@ -44,8 +43,7 @@ module('Component | OwnersList', function (hooks) {
4443
4544 let store = this . owner . lookup ( 'service:store' ) ;
4645 this . crate = await store . findRecord ( 'crate' , crate . name ) ;
47- await this . crate . hasMany ( 'owner_team' ) . load ( ) ;
48- await this . crate . hasMany ( 'owner_user' ) . load ( ) ;
46+ await this . crate . loadOwnersTask . perform ( ) ;
4947
5048 await render ( hbs `<OwnersList @owners={{this.crate.owners}} />` ) ;
5149 assert . dom ( '[data-test-owners="detailed"]' ) . exists ( ) ;
@@ -70,8 +68,7 @@ module('Component | OwnersList', function (hooks) {
7068
7169 let store = this . owner . lookup ( 'service:store' ) ;
7270 this . crate = await store . findRecord ( 'crate' , crate . name ) ;
73- await this . crate . hasMany ( 'owner_team' ) . load ( ) ;
74- await this . crate . hasMany ( 'owner_user' ) . load ( ) ;
71+ await this . crate . loadOwnersTask . perform ( ) ;
7572
7673 await render ( hbs `<OwnersList @owners={{this.crate.owners}} />` ) ;
7774 assert . dom ( '[data-test-owners="detailed"]' ) . exists ( ) ;
@@ -93,8 +90,7 @@ module('Component | OwnersList', function (hooks) {
9390
9491 let store = this . owner . lookup ( 'service:store' ) ;
9592 this . crate = await store . findRecord ( 'crate' , crate . name ) ;
96- await this . crate . hasMany ( 'owner_team' ) . load ( ) ;
97- await this . crate . hasMany ( 'owner_user' ) . load ( ) ;
93+ await this . crate . loadOwnersTask . perform ( ) ;
9894
9995 await render ( hbs `<OwnersList @owners={{this.crate.owners}} />` ) ;
10096 assert . dom ( '[data-test-owners="basic"]' ) . exists ( ) ;
@@ -120,8 +116,7 @@ module('Component | OwnersList', function (hooks) {
120116
121117 let store = this . owner . lookup ( 'service:store' ) ;
122118 this . crate = await store . findRecord ( 'crate' , crate . name ) ;
123- await this . crate . hasMany ( 'owner_team' ) . load ( ) ;
124- await this . crate . hasMany ( 'owner_user' ) . load ( ) ;
119+ await this . crate . loadOwnersTask . perform ( ) ;
125120
126121 await render ( hbs `<OwnersList @owners={{this.crate.owners}} />` ) ;
127122 assert . dom ( '[data-test-owners="detailed"]' ) . exists ( ) ;
0 commit comments