File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,22 @@ const testTreeGlob = import.meta.glob('./from-tests/**', { eager: true });
6
6
7
7
module ( 'Glob tests' , function ( ) {
8
8
test ( 'works from app' , function ( assert ) {
9
- assert . deepEqual ( appTreeGlob , { _ : 1 } ) ;
9
+ let keys = Object . keys ( appTreeGlob ) ;
10
+ assert . deepEqual ( keys , [ './from-app/a' , './from-app/b' , './from-app/c' ] ) ;
11
+ assert . strictEqual ( appTreeGlob [ './from-app/a' ] . a , 'a1' ) ;
12
+ assert . strictEqual ( appTreeGlob [ './from-app/b' ] . b , 'b1' ) ;
13
+ assert . strictEqual ( appTreeGlob [ './from-app/c' ] . c , 'c1' ) ;
10
14
} ) ;
11
15
test ( 'works from tests' , function ( assert ) {
12
- assert . deepEqual ( testTreeGlob , { _ : 1 } ) ;
16
+ let keys = Object . keys ( testTreeGlob ) ;
17
+ assert . deepEqual ( keys , [
18
+ './from-tests/a' ,
19
+ './from-tests/b' ,
20
+ './from-tests/c' ,
21
+ ] ) ;
22
+ assert . strictEqual ( appTreeGlob [ './from-app/a' ] . a , 'a1' ) ;
23
+ assert . strictEqual ( appTreeGlob [ './from-app/b' ] . b , 'b1' ) ;
24
+ assert . strictEqual ( appTreeGlob [ './from-app/c' ] . c , 'c1' ) ;
13
25
} ) ;
14
26
15
27
test ( 'with no matches' , function ( assert ) {
You can’t perform that action at this time.
0 commit comments