@@ -26,39 +26,39 @@ describe("gulp-rename path parsing", function () {
26
26
} ) ;
27
27
} ) ;
28
28
29
- var dirname_helper = function ( srcPattern , expectedPath ) {
29
+ var dirnameHelper = function ( srcPattern ) {
30
30
it ( "dirname is path from directory glob to file" , function ( done ) {
31
31
var obj = function ( path ) {
32
32
path . dirname . should . match ( / ^ f i x t u r e s [ 0 - 9 ] ? $ / ) ;
33
33
} ;
34
34
helper ( srcPattern , obj , null , done ) ;
35
35
} ) ;
36
- }
36
+ } ;
37
37
38
38
context ( "when src pattern matches a directory with *" , function ( ) {
39
- dirname_helper ( "test/*/*.min.txt" ) ;
39
+ dirnameHelper ( "test/*/*.min.txt" ) ;
40
40
} ) ;
41
41
42
42
context ( "when src pattern matches a directory with **" , function ( ) {
43
- dirname_helper ( "test/**/*.min.txt" ) ;
43
+ dirnameHelper ( "test/**/*.min.txt" ) ;
44
44
} ) ;
45
45
46
46
context ( "when src pattern matches a directory with [...]" , function ( ) {
47
- dirname_helper ( "test/fixt[a-z]res/*.min.txt" ) ;
47
+ dirnameHelper ( "test/fixt[a-z]res/*.min.txt" ) ;
48
48
} ) ;
49
49
50
50
/* SKIP: glob2base does not handle brace expansion as expected. See wearefractal/glob2base#1 */
51
51
context . skip ( "when src pattern matches a directory with {...,...}" , function ( ) {
52
- dirname_helper ( "test/f{ri,ixtur}es/*.min.txt" ) ;
52
+ dirnameHelper ( "test/f{ri,ixtur}es/*.min.txt" ) ;
53
53
} ) ;
54
54
55
55
/* SKIP: glob2base does not handle brace expansion as expected. See wearefractal/glob2base#1 */
56
56
context . skip ( "when src pattern matches a directory with {#..#}" , function ( ) {
57
- dirname_helper ( "test/fixtures{0..9}/*.min.txt" ) ;
57
+ dirnameHelper ( "test/fixtures{0..9}/*.min.txt" ) ;
58
58
} ) ;
59
59
60
60
context ( "when src pattern matches a directory with an extglob" , function ( ) {
61
- dirname_helper ( "test/f+(ri|ixtur)es/*.min.txt" ) ;
61
+ dirnameHelper ( "test/f+(ri|ixtur)es/*.min.txt" ) ;
62
62
} ) ;
63
63
64
64
/* requires glob-stream >= 3.1.0 */
0 commit comments