Skip to content

Commit b612822

Browse files
committed
Fix additional error properties test for Node 8 error codes
1 parent ef8a9a1 commit b612822

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

test/raven.parsers.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -601,19 +601,17 @@ describe('raven.parsers', function () {
601601

602602
it('should parse an error with additional information', function (done) {
603603
try {
604-
assert.strictEqual(1, 2);
604+
var err = new Error('boom');
605+
err.prop = 'value';
606+
throw err;
605607
} catch (e) {
606608
raven.parsers.parseError(e, {}, function (parsed) {
607609
parsed.should.have.property('exception');
608610
parsed.exception[0].stacktrace.should.have.property('frames');
609611
parsed.should.have.property('extra');
610-
parsed.extra.should.have.property('AssertionError');
611-
parsed.extra.AssertionError.should.have.property('actual');
612-
parsed.extra.AssertionError.actual.should.equal(1);
613-
parsed.extra.AssertionError.should.have.property('expected');
614-
parsed.extra.AssertionError.expected.should.equal(2);
615-
parsed.extra.AssertionError.should.have.property('operator');
616-
parsed.extra.AssertionError.operator.should.equal('===');
612+
parsed.extra.should.have.property('Error');
613+
parsed.extra.Error.should.have.property('prop');
614+
parsed.extra.Error.prop.should.equal('value');
617615
done();
618616
});
619617
}

0 commit comments

Comments
 (0)