Skip to content

Commit 82f3c48

Browse files
committed
test: simplify, add comments
1 parent 2ca614b commit 82f3c48

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ const assert = require("uvu/assert");
44
const nock = require("nock");
55
nock.disableNetConnect();
66

7-
// disable Probot logs
8-
process.env.LOG_LEVEL = "fatal";
97
const { Probot, ProbotOctokit } = require("probot");
108

119
const app = require("./app");
@@ -15,8 +13,11 @@ let probot;
1513
const test = suite("app");
1614
test.before.each(() => {
1715
probot = new Probot({
18-
id: 1,
16+
// simple authentication as alternative to appId/privateKey
1917
githubToken: "test",
18+
// disable logs
19+
logLevel: "warn",
20+
// disable request throttling and retries
2021
Octokit: ProbotOctokit.defaults({
2122
throttle: { enabled: false },
2223
retry: { enabled: false },

0 commit comments

Comments
 (0)