Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelbeltran committed May 14, 2024
1 parent fb7c68f commit 7021803
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 0 additions & 2 deletions examples/express-sample/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


var express = require("express");
var path = require("path");
var logger = require("morgan");
Expand Down
10 changes: 5 additions & 5 deletions examples/express-sample/logger.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
var config = require("config");

if (config.Raygun.Key === "YOUR_API_KEY") {
console.error(
"[Raygun4Node-Express-Sample] You need to set your Raygun API key in the config file",
);
process.exit(1);
console.error(
"[Raygun4Node-Express-Sample] You need to set your Raygun API key in the config file",
);
process.exit(1);
}

// Setup Raygun
var raygun = require("raygun");
var raygunClient = new raygun.Client().init({
apiKey: config.Raygun.Key,
apiKey: config.Raygun.Key,
});

module.exports = raygunClient;
5 changes: 2 additions & 3 deletions test/raygun_breadcrumbs_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ test("custom breadcrumb objects", {}, async function (t) {
category: "CATEGORY",
message: "MESSAGE",
customData: {
"custom": "data",
}
custom: "data",
},
});

client.onBeforeSend(function (payload) {
Expand All @@ -212,4 +212,3 @@ test("custom breadcrumb objects", {}, async function (t) {

testEnv.stop();
});

0 comments on commit 7021803

Please sign in to comment.