@@ -12,6 +12,7 @@ var assets = [
1212 { path : 'css/style-a42f5380.css' , time : 1403184303451 } ,
1313 { path : 'css/style-1d87bebe.css' , time : 1222222222222 } ,
1414 { path : 'css/style-11111111.css' , time : 1111111111111 } ,
15+ { path : 'css/style-11111111.min.css' , time : 1111111111111 } ,
1516 { path : 'css/style-00000000.css' , time : 0 } ,
1617 // Additional unique file
1718 { path : 'css/vendor.css' , time : 0 } ,
@@ -21,6 +22,7 @@ var assets = [
2122 { path : 'css/vendor-a42f5380.css' , time : 1403184303451 } ,
2223 { path : 'css/vendor-1d87bebe.css' , time : 1222222222222 } ,
2324 { path : 'css/vendor-11111111.css' , time : 1111111111111 } ,
25+ { path : 'css/vendor-11111111.min.css' , time : 1111111111111 } ,
2426 { path : 'css/vendor-00000000.css' , time : 0 } ,
2527 // Test nested files
2628 { path : 'css/fonts/fontstyle.css' , time : 0 } ,
@@ -30,6 +32,7 @@ var assets = [
3032 { path : 'css/fonts/fontstyle-a42f5380.css' , time : 1403184303451 } ,
3133 { path : 'css/fonts/fontstyle-1d87bebe.css' , time : 1222222222222 } ,
3234 { path : 'css/fonts/fontstyle-11111111.css' , time : 1111111111111 } ,
35+ { path : 'css/fonts/fontstyle-11111111.min.css' , time : 1111111111111 } ,
3336 { path : 'css/fonts/fontstyle-00000000.css' , time : 0 } ,
3437 // Try to trip regex
3538 { path : 'css/try-to-trip-regex.css' , time : 0 } ,
@@ -39,6 +42,7 @@ var assets = [
3942 { path : 'css/try-to-trip-regex-a42f5380.css' , time : 1403184303451 } ,
4043 { path : 'css/try-to-trip-regex-1d87bebe.css' , time : 1222222222222 } ,
4144 { path : 'css/try-to-trip-regex-11111111.css' , time : 1111111111111 } ,
45+ { path : 'css/try-to-trip-regex-11111111.min.css' , time : 1111111111111 } ,
4246 { path : 'css/try-to-trip-regex-00000000.css' , time : 0 }
4347] ;
4448
@@ -50,7 +54,7 @@ var fileCount;
5054
5155it ( 'should filter 15 files' , function ( cb ) {
5256 keepQuantity = 1 ;
53- filteredQuantity = 6 * uniqueFiles - keepQuantity * uniqueFiles ;
57+ filteredQuantity = 7 * uniqueFiles - keepQuantity * uniqueFiles ;
5458 fileCount = 0 ;
5559
5660 var stream = initStream ( revOutdated ( keepQuantity ) ) ;
@@ -67,7 +71,7 @@ it('should filter 15 files', function (cb) {
6771
6872it ( 'should filter 12 files using default keepQuantity option' , function ( cb ) {
6973 keepQuantity = undefined ;
70- filteredQuantity = 6 * uniqueFiles - 2 * uniqueFiles ;
74+ filteredQuantity = 7 * uniqueFiles - 2 * uniqueFiles ;
7175 fileCount = 0 ;
7276
7377 var stream = initStream ( revOutdated ( ) ) ;
@@ -84,15 +88,15 @@ it('should filter 12 files using default keepQuantity option', function (cb) {
8488
8589it ( 'should filter correct files' , function ( cb ) {
8690 keepQuantity = 3 ;
87- filteredQuantity = 6 * uniqueFiles - keepQuantity * uniqueFiles ;
91+ filteredQuantity = 7 * uniqueFiles - keepQuantity * uniqueFiles ;
8892 fileCount = 0 ;
8993
9094 var stream = initStream ( revOutdated ( keepQuantity ) ) ;
9195
9296 stream . on ( 'data' , function ( file ) {
9397 streamDataCheck ( file ) ;
9498 assert (
95- / \/ ( s t y l e | v e n d o r | f o n t s t y l e | t r y - t o - t r i p - r e g e x ) - ( 1 d 8 7 b e b e | 1 1 1 1 1 1 1 1 | 0 0 0 0 0 0 0 0 ) \. c s s / . test ( file . path ) ,
99+ / \/ ( s t y l e | v e n d o r | f o n t s t y l e | t r y - t o - t r i p - r e g e x ) - ( 1 d 8 7 b e b e | 1 1 1 1 1 1 1 1 | 0 0 0 0 0 0 0 0 ) (?: \. m i n ) ? \. c s s / . test ( file . path ) ,
96100 'should filter correct files'
97101 ) ;
98102 } ) ;
@@ -118,7 +122,7 @@ function initStream(stream) {
118122
119123function streamDataCheck ( file ) {
120124 assert (
121- / \/ ( s t y l e | v e n d o r | f o n t s t y l e | t r y - t o - t r i p - r e g e x ) - [ 0 - 9 a - f ] { 8 } \. c s s / . test ( file . path ) ,
125+ / \/ ( s t y l e | v e n d o r | f o n t s t y l e | t r y - t o - t r i p - r e g e x ) - [ 0 - 9 a - f ] { 8 } (?: \. m i n ) ? \. c s s / . test ( file . path ) ,
122126 'should filter only revisioned files'
123127 ) ;
124128 fileCount ++ ;
0 commit comments