@@ -65,7 +65,7 @@ describe('composer', function () {
6565
6666 it ( 'invalid options' , function ( ) {
6767 try {
68- invoke ( composer . function ( 'foo' , 'bar ' ) )
68+ invoke ( composer . function ( 'foo' , 'foo ' ) )
6969 assert . fail ( )
7070 } catch ( error ) {
7171 assert . ok ( error . message . startsWith ( 'Invalid options' ) )
@@ -83,7 +83,7 @@ describe('composer', function () {
8383
8484 it ( 'too many arguments' , function ( ) {
8585 try {
86- invoke ( composer . function ( 'foo' , { } , 'bar ' ) )
86+ invoke ( composer . function ( 'foo' , { } , 'foo ' ) )
8787 assert . fail ( )
8888 } catch ( error ) {
8989 assert . ok ( error . message . startsWith ( 'Too many arguments' ) )
@@ -102,7 +102,7 @@ describe('composer', function () {
102102
103103 it ( 'invalid options' , function ( ) {
104104 try {
105- invoke ( composer . literal ( 'foo' , 'bar ' ) )
105+ invoke ( composer . literal ( 'foo' , 'foo ' ) )
106106 assert . fail ( )
107107 } catch ( error ) {
108108 assert . ok ( error . message . startsWith ( 'Invalid options' ) )
@@ -120,7 +120,7 @@ describe('composer', function () {
120120
121121 it ( 'too many arguments' , function ( ) {
122122 try {
123- invoke ( composer . literal ( 'foo' , { } , 'bar ' ) )
123+ invoke ( composer . literal ( 'foo' , { } , 'foo ' ) )
124124 assert . fail ( )
125125 } catch ( error ) {
126126 assert . ok ( error . message . startsWith ( 'Too many arguments' ) )
@@ -146,7 +146,7 @@ describe('composer', function () {
146146 } )
147147
148148 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 } ) )
150150 } )
151151
152152 it ( 'function as string' , function ( ) {
@@ -211,11 +211,11 @@ describe('composer', function () {
211211
212212 describe ( 'null task' , function ( ) {
213213 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 ' } ) )
215215 } )
216216
217217 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 ' } ) )
219219 } )
220220 } )
221221
@@ -240,7 +240,7 @@ describe('composer', function () {
240240
241241 it ( 'a dictionary is not a valid task' , function ( ) {
242242 try {
243- invoke ( composer . task ( { foo : 'bar ' } ) )
243+ invoke ( composer . task ( { foo : 'foo ' } ) )
244244 assert . fail ( )
245245 } catch ( error ) {
246246 assert . ok ( error . message . startsWith ( 'Invalid argument' ) )
@@ -250,7 +250,7 @@ describe('composer', function () {
250250
251251 it ( 'too many arguments' , function ( ) {
252252 try {
253- invoke ( composer . task ( 'foo' , 'bar ' ) )
253+ invoke ( composer . task ( 'foo' , 'foo ' ) )
254254 assert . fail ( )
255255 } catch ( error ) {
256256 assert . ok ( error . message . startsWith ( 'Too many arguments' ) )
0 commit comments