@@ -28,40 +28,40 @@ describe("[argument-placeholders]", () => {
28
28
29
29
beforeEach ( removeResult )
30
30
31
- describe ( "If arguments preceded by '--' are nothing, '{1}' should be as is :" , ( ) => {
31
+ describe ( "If arguments preceded by '--' are nothing, '{1}' should be empty :" , ( ) => {
32
32
it ( "Node API" , ( ) =>
33
33
nodeApi ( "test-task:dump {1}" )
34
- . then ( ( ) => assert ( result ( ) === "[\"{1}\" ]" ) )
34
+ . then ( ( ) => assert ( result ( ) === "[]" ) )
35
35
)
36
36
37
37
it ( "npm-run-all command" , ( ) =>
38
38
runAll ( [ "test-task:dump {1}" ] )
39
- . then ( ( ) => assert ( result ( ) === "[\"{1}\" ]" ) )
39
+ . then ( ( ) => assert ( result ( ) === "[]" ) )
40
40
)
41
41
42
42
it ( "npm-run-all command (only '--' exists)" , ( ) =>
43
43
runAll ( [ "test-task:dump {1}" , "--" ] )
44
- . then ( ( ) => assert ( result ( ) === "[\"{1}\" ]" ) )
44
+ . then ( ( ) => assert ( result ( ) === "[]" ) )
45
45
)
46
46
47
47
it ( "run-s command" , ( ) =>
48
48
runSeq ( [ "test-task:dump {1}" ] )
49
- . then ( ( ) => assert ( result ( ) === "[\"{1}\" ]" ) )
49
+ . then ( ( ) => assert ( result ( ) === "[]" ) )
50
50
)
51
51
52
52
it ( "run-s command (only '--' exists)" , ( ) =>
53
53
runSeq ( [ "test-task:dump {1}" , "--" ] )
54
- . then ( ( ) => assert ( result ( ) === "[\"{1}\" ]" ) )
54
+ . then ( ( ) => assert ( result ( ) === "[]" ) )
55
55
)
56
56
57
57
it ( "run-p command" , ( ) =>
58
58
runPar ( [ "test-task:dump {1}" ] )
59
- . then ( ( ) => assert ( result ( ) === "[\"{1}\" ]" ) )
59
+ . then ( ( ) => assert ( result ( ) === "[]" ) )
60
60
)
61
61
62
62
it ( "run-p command (only '--' exists)" , ( ) =>
63
63
runPar ( [ "test-task:dump {1}" , "--" ] )
64
- . then ( ( ) => assert ( result ( ) === "[\"{1}\" ]" ) )
64
+ . then ( ( ) => assert ( result ( ) === "[]" ) )
65
65
)
66
66
} )
67
67
@@ -156,22 +156,22 @@ describe("[argument-placeholders]", () => {
156
156
describe ( "Every '{1}', '{2}', '{@}' and '{*}' should be replaced by the arguments preceded by '--':" , ( ) => {
157
157
it ( "Node API" , ( ) =>
158
158
nodeApi ( "test-task:dump {1} {2} {3} {@} {*}" , { arguments : [ "1st" , "2nd" ] } )
159
- . then ( ( ) => assert ( result ( ) === "[\"1st\",\"2nd\",\"{3}\",\" 1st\",\"2nd\",\"1st 2nd\"]" ) )
159
+ . then ( ( ) => assert ( result ( ) === "[\"1st\",\"2nd\",\"1st\",\"2nd\",\"1st 2nd\"]" ) )
160
160
)
161
161
162
162
it ( "npm-run-all command" , ( ) =>
163
163
runAll ( [ "test-task:dump {1} {2} {3} {@} {*}" , "--" , "1st" , "2nd" ] )
164
- . then ( ( ) => assert ( result ( ) === "[\"1st\",\"2nd\",\"{3}\",\" 1st\",\"2nd\",\"1st 2nd\"]" ) )
164
+ . then ( ( ) => assert ( result ( ) === "[\"1st\",\"2nd\",\"1st\",\"2nd\",\"1st 2nd\"]" ) )
165
165
)
166
166
167
167
it ( "run-s command" , ( ) =>
168
168
runSeq ( [ "test-task:dump {1} {2} {3} {@} {*}" , "--" , "1st" , "2nd" ] )
169
- . then ( ( ) => assert ( result ( ) === "[\"1st\",\"2nd\",\"{3}\",\" 1st\",\"2nd\",\"1st 2nd\"]" ) )
169
+ . then ( ( ) => assert ( result ( ) === "[\"1st\",\"2nd\",\"1st\",\"2nd\",\"1st 2nd\"]" ) )
170
170
)
171
171
172
172
it ( "run-p command" , ( ) =>
173
173
runPar ( [ "test-task:dump {1} {2} {3} {@} {*}" , "--" , "1st" , "2nd" ] )
174
- . then ( ( ) => assert ( result ( ) === "[\"1st\",\"2nd\",\"{3}\",\" 1st\",\"2nd\",\"1st 2nd\"]" ) )
174
+ . then ( ( ) => assert ( result ( ) === "[\"1st\",\"2nd\",\"1st\",\"2nd\",\"1st 2nd\"]" ) )
175
175
)
176
176
} )
177
177
} )
0 commit comments