Skip to content

expect(..).toThrow(new Meteor.Error(401, '')) fails using phantomjs #110

@xpressivecode

Description

@xpressivecode

This most likely has nothing to do with RTD, but with phantomjs js engine. But I thought I would at least ask to see if you knew of a work around.

Meteor.user = function(){ return null; }
Meteor.Error = function(error, reason){
    return {
        error: error,
        reason: reason
    };
};

expect(Helper.method).toThrow(new Meteor.Error(401, 'must be logged in'));

fails using phantomjs

passes using chrome

I'll assume that this might be due to phantomjs using an older javascript engine. Any thoughts on getting it to pass? I'd prefer not to have any additional browser windows open, but will continue to use chrome for the time being.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions