Skip to content

"An unexpected error was caught" when calling async callback #187

@peterbraden

Description

@peterbraden

this code will trigger:

    require('vows').describe('vows').addBatch({
        'foo' : {
            topic : function(){
        this.callback(1)
            }
            , 'bar' : function(x){
                assert.equal(x, 1)
            }        

        }
    }).run()

gives:

    $ node test.js 
    ✗ 

      foo
        ✗ bar
          » An unexpected error was caught: 1
    ✗ Errored » 1 errored (0.004s)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions