This repository was archived by the owner on Jul 13, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -92,4 +92,25 @@ describe('System', function () {
92
92
} ) ;
93
93
} ) ;
94
94
} ) ;
95
+
96
+ describe ( '#locate' , function ( ) {
97
+
98
+ beforeEach ( function ( ) {
99
+ System . baseURL = 'http://example.org/a/' ;
100
+ } ) ;
101
+
102
+ it ( 'should resolve paths' , function ( ) {
103
+ expect ( System . locate ( { name : '@abc/def' } ) )
104
+ . to . equal ( 'http://example.org/a/@abc/def.js' ) ;
105
+ expect ( System . locate ( { name : ' abc/def' } ) )
106
+ . to . equal ( 'http://example.org/a/abc/def.js' ) ;
107
+ } ) ;
108
+
109
+ it ( 'should resolve paths with the existing config' , function ( ) {
110
+ System . paths [ 'path/*' ] = '/test/*.js' ;
111
+ expect ( System . locate ( { name : 'path/test' } ) )
112
+ . to . equal ( 'http://example.org/test/test.js' ) ;
113
+ } ) ;
114
+
115
+ } ) ;
95
116
} ) ;
Original file line number Diff line number Diff line change @@ -16,27 +16,6 @@ describe('System', function () {
16
16
17
17
} ) ;
18
18
19
- describe ( '#locate' , function ( ) {
20
-
21
- beforeEach ( function ( ) {
22
- System . baseURL = 'http://example.org/a/' ;
23
- } ) ;
24
-
25
- it ( 'should resolve paths' , function ( ) {
26
- expect ( System . locate ( { name : '@abc/def' } ) )
27
- . to . equal ( 'http://example.org/a/@abc/def.js' ) ;
28
- expect ( System . locate ( { name : ' abc/def' } ) )
29
- . to . equal ( 'http://example.org/a/abc/def.js' ) ;
30
- } ) ;
31
-
32
- it ( 'should resolve paths with the existing config' , function ( ) {
33
- System . paths [ 'path/*' ] = '/test/*.js' ;
34
- expect ( System . locate ( { name : 'path/test' } ) )
35
- . to . equal ( 'http://example.org/test/test.js' ) ;
36
- } ) ;
37
-
38
- } ) ;
39
-
40
19
describe ( '#import' , function ( ) {
41
20
42
21
describe ( 'an ES5 script' , function ( ) {
You can’t perform that action at this time.
0 commit comments