File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,11 +3,9 @@ import * as QUnit from 'qunit';
33
44export function nonTestDoneCallback ( ) { }
55
6- let Adapter = TestAdapter . extend ( {
7- init ( ) {
8- this . doneCallbacks = [ ] ;
9- this . qunit = this . qunit || QUnit ;
10- } ,
6+ export default class QUnitAdapter extends TestAdapter {
7+ doneCallbacks = [ ] ;
8+ qunit = this . qunit || QUnit ;
119
1210 asyncStart ( ) {
1311 let currentTest = this . qunit . config . current ;
@@ -16,7 +14,7 @@ let Adapter = TestAdapter.extend({
1614 ? currentTest . assert . async ( )
1715 : nonTestDoneCallback ;
1816 this . doneCallbacks . push ( { test : currentTest , done } ) ;
19- } ,
17+ }
2018
2119 asyncEnd ( ) {
2220 let currentTest = this . qunit . config . current ;
@@ -34,7 +32,5 @@ let Adapter = TestAdapter.extend({
3432 if ( test === currentTest ) {
3533 done ( ) ;
3634 }
37- } ,
38- } ) ;
39-
40- export default Adapter ;
35+ }
36+ }
You can’t perform that action at this time.
0 commit comments