File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 2
2
// which does not actually exist in the source code
3
3
import { loadControllers } from '../dist/loader' ;
4
4
import { Application , Controller } from '@hotwired/stimulus' ;
5
- import type {
6
- EagerControllersCollection ,
7
- LazyControllersCollection ,
8
- } from '../src/controllers' ;
5
+ import type { EagerControllersCollection , LazyControllersCollection } from '../src/controllers' ;
9
6
import { waitFor } from '@testing-library/dom' ;
10
7
11
8
let isController1Initialized = false ;
@@ -52,7 +49,7 @@ describe('loader', () => {
52
49
53
50
document . body . innerHTML = '<div data-controller="controller3"></div>' ;
54
51
// wait a moment for the MutationObserver to fire
55
- await new Promise ( resolve => setTimeout ( resolve , 10 ) ) ;
52
+ await new Promise ( ( resolve ) => setTimeout ( resolve , 10 ) ) ;
56
53
expect ( isController3Initialized ) . toBe ( true ) ;
57
54
58
55
application . stop ( ) ;
You can’t perform that action at this time.
0 commit comments