File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11/* globals Testem */
22import * as QUnit from 'qunit' ;
3- import AbstractTestLoader from 'ember-cli-test-loader/test-support/index' ;
43import Ember from 'ember' ;
54import { isSettled , getSettledState } from '@ember/test-helpers' ;
65import { _backburner } from '@ember/runloop' ;
@@ -39,19 +38,6 @@ QUnit.done(function () {
3938 }
4039} ) ;
4140
42- class TestLoader extends AbstractTestLoader {
43- moduleLoadFailure ( moduleName , error ) {
44- moduleLoadFailures . push ( error ) ;
45-
46- QUnit . module ( 'TestLoader Failures' ) ;
47- QUnit . test ( moduleName + ': could not be loaded' , function ( ) {
48- throw error ;
49- } ) ;
50- }
51- }
52-
53- new TestLoader ( ) . loadModules ( ) ;
54-
5541QUnit . testDone ( function ( { module, name } ) {
5642 // ensure no test accidentally change state of backburner.DEBUG
5743 if ( _backburner . DEBUG !== true ) {
Original file line number Diff line number Diff line change 11import { module , test } from 'qunit' ;
2+ import { setupEmberTesting } from 'ember-qunit' ;
23import Service , { inject as injectService } from '@ember/service' ;
34import {
45 setupContext ,
@@ -29,7 +30,10 @@ import config from '../../config/environment';
2930import Ember from 'ember' ;
3031import { deprecate , warn } from '@ember/debug' ;
3132
33+ console . log ( Ember . testing ) ;
3234module ( 'setupContext' , function ( hooks ) {
35+ setupEmberTesting ( hooks ) ;
36+
3337 if ( ! hasEmberVersion ( 2 , 4 ) ) {
3438 return ;
3539 }
You can’t perform that action at this time.
0 commit comments