File tree 1 file changed +16
-16
lines changed
1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -120,22 +120,22 @@ const assert = require('assert');
120
120
}
121
121
} ) ;
122
122
123
- // for (const href of baseURLs) {
124
- // const redirector = manifest.getDependencyMapper(href);
125
- // if (href.startsWith('file:///root/dir1/')) {
126
- // assert.strictEqual(
127
- // redirector.resolve('fs').href,
128
- // 'test:fs2'
129
- // );
130
- // } else if (href === 'file:///root/dir1') {
131
- // assert.strictEqual(
132
- // redirector.resolve('fs').href,
133
- // 'test:fs1'
134
- // );
135
- // } else {
136
- // assert.strictEqual(redirector.resolve('fs'), null);
137
- // }
138
- // }
123
+ for ( const href of baseURLs ) {
124
+ const redirector = manifest . getDependencyMapper ( href ) ;
125
+ if ( href . startsWith ( 'file:///root/dir1/' ) ) {
126
+ assert . strictEqual (
127
+ redirector . resolve ( 'fs' ) . href ,
128
+ 'test:fs2'
129
+ ) ;
130
+ } else if ( href === 'file:///root/dir1' ) {
131
+ assert . strictEqual (
132
+ redirector . resolve ( 'fs' ) . href ,
133
+ 'test:fs1'
134
+ ) ;
135
+ } else {
136
+ assert . strictEqual ( redirector . resolve ( 'fs' ) , null ) ;
137
+ }
138
+ }
139
139
140
140
assert . strictEqual (
141
141
manifest
You can’t perform that action at this time.
0 commit comments