Skip to content

Commit fd65666

Browse files
committed
WIP Unit Test Updates
1 parent 16213d5 commit fd65666

File tree

12 files changed

+794
-935
lines changed

12 files changed

+794
-935
lines changed

example/express/app.js

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,29 @@ const app = express()
33

44
import { Exceptionless } from "@exceptionless/node";
55

6-
Exceptionless.startup({
7-
apiKey: "LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw",
8-
serverUrl: "http://localhost:5000"
6+
Exceptionless.startup(c => {
7+
c.apiKey = "LhhP1C9gijpSKCslHHCvwdSIz298twx271n1l6xw";
8+
c.serverUrl = "http://localhost:5000";
9+
c.useDebugLogger();
10+
c.useLocalStorage();
11+
12+
c.defaultTags.push("Example", "Node");
13+
14+
// set some default data
15+
c.defaultData["SampleUser"] = {
16+
id: 1,
17+
name: "Blake",
18+
password: "123456",
19+
passwordResetToken: "a reset token",
20+
myPasswordValue: "123456",
21+
myPassword: "123456",
22+
customValue: "Password",
23+
value: {
24+
Password: "123456"
25+
}
26+
};
927
});
1028

11-
Exceptionless.config.useDebugLogger();
12-
Exceptionless.config.useLocalStorage();
13-
14-
// set some default data
15-
Exceptionless.config.defaultData["SampleUser"] = {
16-
id:1,
17-
name: "Blake",
18-
password: "123456",
19-
passwordResetToken: "a reset token",
20-
myPasswordValue: "123456",
21-
myPassword: "123456",
22-
customValue: "Password",
23-
value: {
24-
Password: "123456"
25-
}
26-
};
27-
28-
Exceptionless.config.defaultTags.push("Example", "Node");
29-
3029
app.get("/", function index(req, res) {
3130
Exceptionless.submitLog("loading index content");
3231
res.send("Hello World!");

0 commit comments

Comments
 (0)