File tree 6 files changed +18
-12
lines changed
initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__
instance-initializer-test/qunit-rfc-232-files/__root__/__testType__/__path__
instance-initializer-test
6 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,18 @@ import Application from '@ember/application';
2
2
3
3
import { initialize } from '<%= modulePrefix %>/initializers/<%= dasherizedModuleName %>' ;
4
4
import { module , test } from 'qunit' ;
5
+ import Resolver from 'ember-resolver' ;
5
6
< % if ( destroyAppExists ) { % > import destroyApp from '../../helpers/destroy-app' ; < % } else { % > import { run } from '@ember/runloop' ; < % } % >
6
7
7
8
module ( '<%= friendlyTestName %>' , function ( hooks ) {
8
9
hooks . beforeEach ( function ( ) {
9
- this . TestApplication = Application . extend ( ) ;
10
+ this . TestApplication = class TestApplication extends Application { }
10
11
this . TestApplication . initializer ( {
11
12
name : 'initializer under test' ,
12
13
initialize
13
14
} ) ;
14
15
15
- this . application = this . TestApplication . create ( { autoboot : false } ) ;
16
+ this . application = this . TestApplication . create ( { autoboot : false , Resolver } ) ;
16
17
} ) ;
17
18
18
19
hooks . afterEach ( function ( ) {
Original file line number Diff line number Diff line change @@ -2,16 +2,17 @@ import Application from '@ember/application';
2
2
3
3
import { initialize } from '<%= modulePrefix %>/instance-initializers/<%= dasherizedModuleName %>' ;
4
4
import { module , test } from 'qunit' ;
5
+ import Resolver from 'ember-resolver' ;
5
6
< % if ( destroyAppExists ) { % > import destroyApp from '../../helpers/destroy-app' ; < % } else { % > import { run } from '@ember/runloop' ; < % } % >
6
7
7
8
module ( '<%= friendlyTestName %>' , function ( hooks ) {
8
9
hooks . beforeEach ( function ( ) {
9
- this . TestApplication = Application . extend ( ) ;
10
+ this . TestApplication = class TestApplication extends Application { }
10
11
this . TestApplication . instanceInitializer ( {
11
12
name : 'initializer under test' ,
12
13
initialize
13
14
} ) ;
14
- this . application = this . TestApplication . create ( { autoboot : false } ) ;
15
+ this . application = this . TestApplication . create ( { autoboot : false , Resolver } ) ;
15
16
this . instance = this . application . buildInstance ( ) ;
16
17
} ) ;
17
18
hooks . afterEach ( function ( ) {
Original file line number Diff line number Diff line change @@ -2,17 +2,18 @@ import Application from '@ember/application';
2
2
3
3
import { initialize } from 'my-app/init/initializers/foo' ;
4
4
import { module , test } from 'qunit' ;
5
+ import Resolver from 'ember-resolver' ;
5
6
import { run } from '@ember/runloop' ;
6
7
7
8
module ( 'Unit | Initializer | foo' , function ( hooks ) {
8
9
hooks . beforeEach ( function ( ) {
9
- this . TestApplication = Application . extend ( ) ;
10
+ this . TestApplication = class TestApplication extends Application { }
10
11
this . TestApplication . initializer ( {
11
12
name : 'initializer under test' ,
12
13
initialize
13
14
} ) ;
14
15
15
- this . application = this . TestApplication . create ( { autoboot : false } ) ;
16
+ this . application = this . TestApplication . create ( { autoboot : false , Resolver } ) ;
16
17
} ) ;
17
18
18
19
hooks . afterEach ( function ( ) {
Original file line number Diff line number Diff line change @@ -2,17 +2,18 @@ import Application from '@ember/application';
2
2
3
3
import { initialize } from 'my-app/initializers/foo' ;
4
4
import { module , test } from 'qunit' ;
5
+ import Resolver from 'ember-resolver' ;
5
6
import { run } from '@ember/runloop' ;
6
7
7
8
module ( 'Unit | Initializer | foo' , function ( hooks ) {
8
9
hooks . beforeEach ( function ( ) {
9
- this . TestApplication = Application . extend ( ) ;
10
+ this . TestApplication = class TestApplication extends Application { }
10
11
this . TestApplication . initializer ( {
11
12
name : 'initializer under test' ,
12
13
initialize
13
14
} ) ;
14
15
15
- this . application = this . TestApplication . create ( { autoboot : false } ) ;
16
+ this . application = this . TestApplication . create ( { autoboot : false , Resolver } ) ;
16
17
} ) ;
17
18
18
19
hooks . afterEach ( function ( ) {
Original file line number Diff line number Diff line change @@ -2,16 +2,17 @@ import Application from '@ember/application';
2
2
3
3
import { initialize } from 'my-app/init/instance-initializers/foo' ;
4
4
import { module , test } from 'qunit' ;
5
+ import Resolver from 'ember-resolver' ;
5
6
import { run } from '@ember/runloop' ;
6
7
7
8
module ( 'Unit | Instance Initializer | foo' , function ( hooks ) {
8
9
hooks . beforeEach ( function ( ) {
9
- this . TestApplication = Application . extend ( ) ;
10
+ this . TestApplication = class TestApplication extends Application { }
10
11
this . TestApplication . instanceInitializer ( {
11
12
name : 'initializer under test' ,
12
13
initialize
13
14
} ) ;
14
- this . application = this . TestApplication . create ( { autoboot : false } ) ;
15
+ this . application = this . TestApplication . create ( { autoboot : false , Resolver } ) ;
15
16
this . instance = this . application . buildInstance ( ) ;
16
17
} ) ;
17
18
hooks . afterEach ( function ( ) {
Original file line number Diff line number Diff line change @@ -2,16 +2,17 @@ import Application from '@ember/application';
2
2
3
3
import { initialize } from 'my-app/instance-initializers/foo' ;
4
4
import { module , test } from 'qunit' ;
5
+ import Resolver from 'ember-resolver' ;
5
6
import { run } from '@ember/runloop' ;
6
7
7
8
module ( 'Unit | Instance Initializer | foo' , function ( hooks ) {
8
9
hooks . beforeEach ( function ( ) {
9
- this . TestApplication = Application . extend ( ) ;
10
+ this . TestApplication = class TestApplication extends Application { }
10
11
this . TestApplication . instanceInitializer ( {
11
12
name : 'initializer under test' ,
12
13
initialize
13
14
} ) ;
14
- this . application = this . TestApplication . create ( { autoboot : false } ) ;
15
+ this . application = this . TestApplication . create ( { autoboot : false , Resolver } ) ;
15
16
this . instance = this . application . buildInstance ( ) ;
16
17
} ) ;
17
18
hooks . afterEach ( function ( ) {
You can’t perform that action at this time.
0 commit comments