@ -69,9 +69,18 @@ test('all sync - no failure - no bail', function (t) {
passed : true ,
reason : null ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : true , result : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -91,9 +100,18 @@ test('all sync - no failure - bail', function (t) {
passed : true ,
reason : null ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : true , result : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -113,9 +131,18 @@ test('all sync - begin failure - no bail', function (t) {
passed : false ,
reason : 'a' ,
result : [
{ passed : false , reason : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : true , result : 'c' }
{
passed : false ,
reason : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -135,9 +162,17 @@ test('all sync - mid failure - no bail', function (t) {
passed : false ,
reason : 'b' ,
result : [
{ passed : true , result : 'a' } ,
{ passed : false , reason : 'b' } ,
{ passed : true , result : 'c' }
{
passed : true ,
result : 'a' } ,
{
passed : false ,
reason : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -157,9 +192,18 @@ test('all sync - end failure - no bail', function (t) {
passed : false ,
reason : 'c' ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : false , reason : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : false ,
reason : 'c'
}
]
} ) ;
t . end ( ) ;
@ -179,9 +223,18 @@ test('all sync - multiple failure - no bail', function (t) {
passed : false ,
reason : 'a' ,
result : [
{ passed : false , reason : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : false , reason : 'c' }
{
passed : false ,
reason : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : false ,
reason : 'c'
}
]
} ) ;
t . end ( ) ;
@ -201,7 +254,10 @@ test('all sync - begin failure - bail', function (t) {
passed : false ,
reason : 'a' ,
result : [
{ passed : false , reason : 'a' }
{
passed : false ,
reason : 'a'
}
]
} ) ;
t . end ( ) ;
@ -221,8 +277,14 @@ test('all sync - mid failure - bail', function (t) {
passed : false ,
reason : 'b' ,
result : [
{ passed : true , result : 'a' } ,
{ passed : false , reason : 'b' }
{
passed : true ,
result : 'a'
} ,
{
passed : false ,
reason : 'b'
}
]
} ) ;
t . end ( ) ;
@ -242,9 +304,18 @@ test('all sync - end failure - bail', function (t) {
passed : false ,
reason : 'c' ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : false , reason : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : false ,
reason : 'c'
}
]
} ) ;
t . end ( ) ;
@ -263,9 +334,18 @@ test('all async - no failure - no bail', function (t) {
passed : true ,
reason : null ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : true , result : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -285,9 +365,18 @@ test('all async - no failure - bail', function (t) {
passed : true ,
reason : null ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : true , result : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -307,9 +396,18 @@ test('last async - no failure - no bail', function (t) {
passed : true ,
reason : null ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : true , result : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -329,9 +427,18 @@ test('mid async - no failure - no bail', function (t) {
passed : true ,
reason : null ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : true , result : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -351,9 +458,18 @@ test('first async - no failure - no bail', function (t) {
passed : true ,
reason : null ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : true , result : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -373,9 +489,18 @@ test('last async - no failure - bail', function (t) {
passed : true ,
reason : null ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : true , result : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -395,9 +520,18 @@ test('mid async - no failure - bail', function (t) {
passed : true ,
reason : null ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : true , result : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -417,9 +551,18 @@ test('first async - no failure - bail', function (t) {
passed : true ,
reason : null ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : true , result : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -439,7 +582,10 @@ test('all async - begin failure - bail', function (t) {
passed : false ,
reason : 'a' ,
result : [
{ passed : false , reason : 'a' }
{
passed : false ,
reason : 'a'
}
]
} ) ;
t . end ( ) ;
@ -459,8 +605,14 @@ test('all async - mid failure - bail', function (t) {
passed : false ,
reason : 'b' ,
result : [
{ passed : true , result : 'a' } ,
{ passed : false , reason : 'b' }
{
passed : true ,
result : 'a'
} ,
{
passed : false ,
reason : 'b'
}
]
} ) ;
t . end ( ) ;
@ -480,9 +632,18 @@ test('all async - end failure - bail', function (t) {
passed : false ,
reason : 'c' ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : false , reason : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : false ,
reason : 'c'
}
]
} ) ;
t . end ( ) ;
@ -502,9 +663,18 @@ test('all async - begin failure - no bail', function (t) {
passed : false ,
reason : 'a' ,
result : [
{ passed : false , reason : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : true , result : 'c' }
{
passed : false ,
reason : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -524,9 +694,18 @@ test('all async - mid failure - no bail', function (t) {
passed : false ,
reason : 'b' ,
result : [
{ passed : true , result : 'a' } ,
{ passed : false , reason : 'b' } ,
{ passed : true , result : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : false ,
reason : 'b'
} ,
{
passed : true ,
result : 'c'
}
]
} ) ;
t . end ( ) ;
@ -546,9 +725,18 @@ test('all async - end failure - no bail', function (t) {
passed : false ,
reason : 'c' ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : false , reason : 'c' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : false ,
reason : 'c'
}
]
} ) ;
t . end ( ) ;
@ -568,9 +756,18 @@ test('all async - multiple failure - no bail', function (t) {
passed : false ,
reason : 'a' ,
result : [
{ passed : false , reason : 'a' } ,
{ passed : true , result : 'b' } ,
{ passed : false , reason : 'c' }
{
passed : false ,
reason : 'a'
} ,
{
passed : true ,
result : 'b'
} ,
{
passed : false ,
reason : 'c'
}
]
} ) ;
t . end ( ) ;
@ -585,8 +782,8 @@ test('rejections are just passed through - no bail', function (t) {
reject ( 'foo' )
] ,
false
) . run ( ) . catch ( function ( reason ) {
t . is ( reason , 'foo' ) ;
) . run ( ) . catch ( function ( err ) {
t . is ( err , 'foo' ) ;
t . end ( ) ;
} ) ;
} ) ;
@ -599,8 +796,8 @@ test('rejections are just passed through - bail', function (t) {
reject ( 'foo' )
] ,
true
) . run ( ) . catch ( function ( reason ) {
t . is ( reason , 'foo' ) ;
) . run ( ) . catch ( function ( err ) {
t . is ( err , 'foo' ) ;
t . end ( ) ;
} ) ;
} ) ;
@ -634,15 +831,24 @@ test('sequences of sequences', function (t) {
passed : true ,
reason : null ,
result : [
{ passed : true , result : 'a' } ,
{ passed : true , result : 'b' }
{
passed : true ,
result : 'a'
} ,
{
passed : true ,
result : 'b'
}
]
} ,
{
passed : true ,
reason : null ,
result : [
{ passed : true , result : 'c' }
{
passed : true ,
result : 'c'
}
]
}
]