@@ -65,7 +65,7 @@ describe('composer', function () {
65
65
66
66
it ( 'invalid options' , function ( ) {
67
67
try {
68
- invoke ( composer . function ( 'foo' , 'bar ' ) )
68
+ invoke ( composer . function ( 'foo' , 'foo ' ) )
69
69
assert . fail ( )
70
70
} catch ( error ) {
71
71
assert . ok ( error . message . startsWith ( 'Invalid options' ) )
@@ -83,7 +83,7 @@ describe('composer', function () {
83
83
84
84
it ( 'too many arguments' , function ( ) {
85
85
try {
86
- invoke ( composer . function ( 'foo' , { } , 'bar ' ) )
86
+ invoke ( composer . function ( 'foo' , { } , 'foo ' ) )
87
87
assert . fail ( )
88
88
} catch ( error ) {
89
89
assert . ok ( error . message . startsWith ( 'Too many arguments' ) )
@@ -102,7 +102,7 @@ describe('composer', function () {
102
102
103
103
it ( 'invalid options' , function ( ) {
104
104
try {
105
- invoke ( composer . literal ( 'foo' , 'bar ' ) )
105
+ invoke ( composer . literal ( 'foo' , 'foo ' ) )
106
106
assert . fail ( )
107
107
} catch ( error ) {
108
108
assert . ok ( error . message . startsWith ( 'Invalid options' ) )
@@ -120,7 +120,7 @@ describe('composer', function () {
120
120
121
121
it ( 'too many arguments' , function ( ) {
122
122
try {
123
- invoke ( composer . literal ( 'foo' , { } , 'bar ' ) )
123
+ invoke ( composer . literal ( 'foo' , { } , 'foo ' ) )
124
124
assert . fail ( )
125
125
} catch ( error ) {
126
126
assert . ok ( error . message . startsWith ( 'Too many arguments' ) )
@@ -146,7 +146,7 @@ describe('composer', function () {
146
146
} )
147
147
148
148
it ( 'function must mutate params' , function ( ) {
149
- return invoke ( composer . function ( params => { params . foo = 'foo' } ) , { bar : 42 } ) . then ( activation => assert . deepEqual ( activation . response . result , { foo : 'foo' , bar : 42 } ) )
149
+ return invoke ( composer . function ( params => { params . foo = 'foo' } ) , { n : 42 } ) . then ( activation => assert . deepEqual ( activation . response . result , { foo : 'foo' , n : 42 } ) )
150
150
} )
151
151
152
152
it ( 'function as string' , function ( ) {
@@ -211,11 +211,11 @@ describe('composer', function () {
211
211
212
212
describe ( 'null task' , function ( ) {
213
213
it ( 'null task must return input' , function ( ) {
214
- return invoke ( composer . task ( ) , { foo : 'bar ' } ) . then ( activation => assert . deepEqual ( activation . response . result , { foo : 'bar ' } ) )
214
+ return invoke ( composer . task ( ) , { foo : 'foo ' } ) . then ( activation => assert . deepEqual ( activation . response . result , { foo : 'foo ' } ) )
215
215
} )
216
216
217
217
it ( 'null task must fail on error input' , function ( ) {
218
- return invoke ( composer . task ( ) , { error : 'bar ' } ) . then ( ( ) => assert . fail ( ) , activation => assert . deepEqual ( activation . error . response . result , { error : 'bar ' } ) )
218
+ return invoke ( composer . task ( ) , { error : 'foo ' } ) . then ( ( ) => assert . fail ( ) , activation => assert . deepEqual ( activation . error . response . result , { error : 'foo ' } ) )
219
219
} )
220
220
} )
221
221
@@ -240,7 +240,7 @@ describe('composer', function () {
240
240
241
241
it ( 'a dictionary is not a valid task' , function ( ) {
242
242
try {
243
- invoke ( composer . task ( { foo : 'bar ' } ) )
243
+ invoke ( composer . task ( { foo : 'foo ' } ) )
244
244
assert . fail ( )
245
245
} catch ( error ) {
246
246
assert . ok ( error . message . startsWith ( 'Invalid argument' ) )
@@ -250,7 +250,7 @@ describe('composer', function () {
250
250
251
251
it ( 'too many arguments' , function ( ) {
252
252
try {
253
- invoke ( composer . task ( 'foo' , 'bar ' ) )
253
+ invoke ( composer . task ( 'foo' , 'foo ' ) )
254
254
assert . fail ( )
255
255
} catch ( error ) {
256
256
assert . ok ( error . message . startsWith ( 'Too many arguments' ) )
0 commit comments