jeudi 17 septembre 2015

Callback when test fails with tape

Is it a way to call a function in case of error?

I have a test like that:

t.true(ARRAY.every(function(item){
    return item.label
}), 'Every item should have label')

So I am looking for a callback to specify which item hasn't label in case of failing.

Aucun commentaire:

Enregistrer un commentaire