@@ -110,6 +110,7 @@ describe('symlink stream', function() {
110
110
expect ( files ) . toInclude ( file ) ;
111
111
expect ( files [ 0 ] . base ) . toEqual ( outputBase , 'base should have changed' ) ;
112
112
expect ( files [ 0 ] . path ) . toEqual ( outputPath , 'path should have changed' ) ;
113
+ expect ( files [ 0 ] . symlink ) . toEqual ( outputLink , 'symlink should be set' ) ;
113
114
expect ( outputLink ) . toEqual ( inputPath ) ;
114
115
}
115
116
@@ -142,6 +143,7 @@ describe('symlink stream', function() {
142
143
expect ( files ) . toInclude ( file ) ;
143
144
expect ( files [ 0 ] . base ) . toEqual ( outputBase , 'base should have changed' ) ;
144
145
expect ( files [ 0 ] . path ) . toEqual ( outputPath , 'path should have changed' ) ;
146
+ expect ( files [ 0 ] . symlink ) . toEqual ( outputLink , 'symlink should be set' ) ;
145
147
expect ( outputLink ) . toEqual ( inputPath ) ;
146
148
}
147
149
@@ -167,6 +169,7 @@ describe('symlink stream', function() {
167
169
expect ( files ) . toInclude ( file ) ;
168
170
expect ( files [ 0 ] . base ) . toEqual ( outputBase , 'base should have changed' ) ;
169
171
expect ( files [ 0 ] . path ) . toEqual ( outputPath , 'path should have changed' ) ;
172
+ expect ( files [ 0 ] . symlink ) . toEqual ( outputLink , 'symlink should be set' ) ;
170
173
expect ( outputLink ) . toEqual ( inputPath ) ;
171
174
}
172
175
@@ -191,6 +194,7 @@ describe('symlink stream', function() {
191
194
expect ( files ) . toInclude ( file ) ;
192
195
expect ( files [ 0 ] . base ) . toEqual ( outputBase , 'base should have changed' ) ;
193
196
expect ( files [ 0 ] . path ) . toEqual ( outputPath , 'path should have changed' ) ;
197
+ expect ( files [ 0 ] . symlink ) . toEqual ( outputLink , 'symlink should be set' ) ;
194
198
expect ( outputLink ) . toEqual ( path . normalize ( '../fixtures/test.txt' ) ) ;
195
199
}
196
200
@@ -215,6 +219,7 @@ describe('symlink stream', function() {
215
219
expect ( files ) . toInclude ( file ) ;
216
220
expect ( files [ 0 ] . base ) . toEqual ( outputBase , 'base should have changed' ) ;
217
221
expect ( files [ 0 ] . path ) . toEqual ( outputPath , 'path should have changed' ) ;
222
+ expect ( files [ 0 ] . symlink ) . toEqual ( outputLink , 'symlink should be set' ) ;
218
223
expect ( outputLink ) . toEqual ( inputPath ) ;
219
224
}
220
225
@@ -249,6 +254,7 @@ describe('symlink stream', function() {
249
254
expect ( files ) . toInclude ( file ) ;
250
255
expect ( files [ 0 ] . base ) . toEqual ( outputBase , 'base should have changed' ) ;
251
256
expect ( files [ 0 ] . path ) . toEqual ( outputDirpath , 'path should have changed' ) ;
257
+ expect ( files [ 0 ] . symlink ) . toEqual ( outputLink , 'symlink should be set' ) ;
252
258
expect ( outputLink ) . toEqual ( inputDirpath ) ;
253
259
expect ( stats . isDirectory ( ) ) . toEqual ( true ) ;
254
260
expect ( lstats . isDirectory ( ) ) . toEqual ( false ) ;
@@ -286,6 +292,7 @@ describe('symlink stream', function() {
286
292
expect ( files [ 0 ] . base ) . toEqual ( outputBase , 'base should have changed' ) ;
287
293
expect ( files [ 0 ] . path ) . toEqual ( outputDirpath , 'path should have changed' ) ;
288
294
// When creating a junction, it seems Windows appends a separator
295
+ expect ( files [ 0 ] . symlink + path . sep ) . toEqual ( outputLink , 'symlink should be set' ) ;
289
296
expect ( outputLink ) . toEqual ( inputDirpath + path . sep ) ;
290
297
expect ( stats . isDirectory ( ) ) . toEqual ( true ) ;
291
298
expect ( lstats . isDirectory ( ) ) . toEqual ( false ) ;
@@ -322,6 +329,7 @@ describe('symlink stream', function() {
322
329
expect ( files ) . toInclude ( file ) ;
323
330
expect ( files [ 0 ] . base ) . toEqual ( outputBase , 'base should have changed' ) ;
324
331
expect ( files [ 0 ] . path ) . toEqual ( outputDirpath , 'path should have changed' ) ;
332
+ expect ( files [ 0 ] . symlink ) . toEqual ( outputLink , 'symlink should be set' ) ;
325
333
expect ( outputLink ) . toEqual ( inputDirpath ) ;
326
334
expect ( stats . isDirectory ( ) ) . toEqual ( true ) ;
327
335
expect ( lstats . isDirectory ( ) ) . toEqual ( false ) ;
@@ -364,6 +372,7 @@ describe('symlink stream', function() {
364
372
expect ( files ) . toInclude ( file ) ;
365
373
expect ( files [ 0 ] . base ) . toEqual ( outputBase , 'base should have changed' ) ;
366
374
expect ( files [ 0 ] . path ) . toEqual ( outputDirpath , 'path should have changed' ) ;
375
+ expect ( files [ 0 ] . symlink ) . toEqual ( outputLink , 'symlink should be set' ) ;
367
376
expect ( outputLink ) . toEqual ( inputDirpath ) ;
368
377
expect ( stats . isDirectory ( ) ) . toEqual ( true ) ;
369
378
expect ( lstats . isDirectory ( ) ) . toEqual ( false ) ;
@@ -400,6 +409,7 @@ describe('symlink stream', function() {
400
409
expect ( files ) . toInclude ( file ) ;
401
410
expect ( files [ 0 ] . base ) . toEqual ( outputBase , 'base should have changed' ) ;
402
411
expect ( files [ 0 ] . path ) . toEqual ( outputDirpath , 'path should have changed' ) ;
412
+ expect ( files [ 0 ] . symlink ) . toEqual ( outputLink , 'symlink should be set' ) ;
403
413
expect ( outputLink ) . toEqual ( path . normalize ( '../fixtures/foo' ) ) ;
404
414
expect ( stats . isDirectory ( ) ) . toEqual ( true ) ;
405
415
expect ( lstats . isDirectory ( ) ) . toEqual ( false ) ;
@@ -437,6 +447,7 @@ describe('symlink stream', function() {
437
447
expect ( files [ 0 ] . base ) . toEqual ( outputBase , 'base should have changed' ) ;
438
448
expect ( files [ 0 ] . path ) . toEqual ( outputDirpath , 'path should have changed' ) ;
439
449
// When creating a junction, it seems Windows appends a separator
450
+ expect ( files [ 0 ] . symlink + path . sep ) . toEqual ( outputLink , 'symlink should be set' ) ;
440
451
expect ( outputLink ) . toEqual ( inputDirpath + path . sep ) ;
441
452
expect ( stats . isDirectory ( ) ) . toEqual ( true ) ;
442
453
expect ( lstats . isDirectory ( ) ) . toEqual ( false ) ;
@@ -503,6 +514,7 @@ describe('symlink stream', function() {
503
514
expect ( files ) . toInclude ( file ) ;
504
515
expect ( files [ 0 ] . base ) . toEqual ( outputBase , 'base should have changed' ) ;
505
516
expect ( files [ 0 ] . path ) . toEqual ( outputDirpath , 'path should have changed' ) ;
517
+ expect ( files [ 0 ] . symlink ) . toEqual ( outputLink , 'symlink should be set' ) ;
506
518
expect ( outputLink ) . toEqual ( path . normalize ( '../fixtures/foo' ) ) ;
507
519
expect ( stats . isDirectory ( ) ) . toEqual ( true ) ;
508
520
expect ( lstats . isDirectory ( ) ) . toEqual ( false ) ;
0 commit comments