Skip to content

Commit b61e077

Browse files
committed
test: dont throw exception when called captureMessage without config phase
1 parent 28b1616 commit b61e077

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/raven.client.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ describe('raven.Client', function() {
217217
};
218218
client.captureMessage('wtf?');
219219
});
220+
221+
it('should call callback even without a config', function(done) {
222+
raven.captureMessage('wtf?', function(err) {
223+
done();
224+
});
225+
});
220226
});
221227

222228
describe('#captureException()', function() {

0 commit comments

Comments
 (0)