File tree Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Expand file tree Collapse file tree 2 files changed +8
-15
lines changed Original file line number Diff line number Diff line change 52
52
"enhanced-resolve" : " ^4.1.0" ,
53
53
"is-relative-path" : " ^1.0.2" ,
54
54
"module-definition" : " ^3.2.0" ,
55
- "module-lookup-amd" : " ^6.1 .0" ,
55
+ "module-lookup-amd" : " ^6.2 .0" ,
56
56
"resolve" : " ^1.10.0" ,
57
57
"resolve-dependency-path" : " ^2.0.0" ,
58
58
"sass-lookup" : " ^3.0.0" ,
Original file line number Diff line number Diff line change @@ -213,26 +213,19 @@ describe('filing-cabinet', function() {
213
213
const unionfs = require ( 'unionfs' ) ;
214
214
const memfs = require ( 'memfs' ) ;
215
215
216
- // mount files specified by "mockedFiles.js.ts " to "app" base directory.
217
- var vol = memfs . Volume . fromJSON ( mockedFiles . js . es6 , `${ volumeDir } ` ) ;
216
+ // mount files specified by "mockedFiles.js.amd " to "app" base directory.
217
+ var vol = memfs . Volume . fromJSON ( mockedFiles . js . amd , `${ volumeDir } ` ) ;
218
218
var ufs = unionfs . ufs . use ( vol ) ;
219
219
const result = cabinet ( {
220
220
partial : './bar' ,
221
221
filename : 'app/foo.js' ,
222
- directory : 'app' ,
223
- config : {
224
- baseUrl : './'
225
- }
222
+ directory : '' ,
223
+ fileSystem : ufs ,
224
+ configPath : 'app/config.js'
226
225
} ) ;
227
226
228
- // var result = cabinet({
229
- // partial: './bar',
230
- // configPath: 'amd/config.js',
231
- // filename: 'amd/foo.js',
232
- // fileSystem: ufs
233
- // });
234
-
235
- assert . equal ( result , `${ path . join ( __dirname , 'amd/bar.js' ) } ` ) ;
227
+ var expected = path . normalize ( 'app/bar.js' ) ;
228
+ assert . equal ( result , expected ) ;
236
229
237
230
} ) ;
238
231
You can’t perform that action at this time.
0 commit comments