UNPKG

airbrake

Version:

DEPRECATION: please use @airbrake/node instead (https://www.npmjs.com/package/@airbrake/node). A Node.js notifier for Airbrake, the leading exception reporting service.

22 lines (18 loc) 498 B
var common = require('./common'); var assert = require('assert'); var Airbrake = require(common.dir.root); (function testCreateClientWorks() { assert.doesNotThrow(function() { Airbrake.createClient(common.projectId, common.key); }); }()); (function testMissingKeyThrows() { assert.throws(function() { Airbrake.createClient(common.projectId); }); }()); (function testMissingProjectIdThrows() { assert.throws(function() { Airbrake.createClient(null, common.key); }); }());