File tree 1 file changed +0
-15
lines changed
1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change 1
1
import { PendingWaiterState , Waiter , WaiterName } from './types' ;
2
2
3
- import Ember from 'ember' ;
4
- import { registerWaiter } from '@ember/test' ;
5
-
6
3
type Indexable = Record < any , unknown > ;
7
4
8
5
// this ensures that if @ember /test-waiters exists in multiple places in the
@@ -37,18 +34,6 @@ function getGlobal(): Indexable {
37
34
throw new Error ( 'unable to locate global object' ) ;
38
35
}
39
36
40
- /**
41
- * Backwards compatibility with legacy waiters system.
42
- *
43
- * We want to always register a waiter using the legacy waiter system, as right
44
- * now if consumers are not on the right version of @ember/test-helpers, using
45
- * this addon will result in none of these waiters waiting.
46
- */
47
- // eslint-disable-next-line ember/new-module-imports
48
- if ( Ember . Test ) {
49
- registerWaiter ( ( ) => ! hasPendingWaiters ( ) ) ;
50
- }
51
-
52
37
/**
53
38
* Registers a waiter.
54
39
*
You can’t perform that action at this time.
0 commit comments