Skip to content

Commit eddf50d

Browse files
committed
test: adapt tests for octokit/request.js#667
1 parent 0de6b7f commit eddf50d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,7 @@ test("auth.hook(): handle 401 due to an exp timestamp in the past", async () =>
15591559
expect(global.console.warn.mock.calls.length).toEqual(2);
15601560
expect(global.console.warn).toHaveBeenNthCalledWith(
15611561
1,
1562-
"'Expiration time' claim ('exp') must be a numeric value representing the future time at which the assertion expires.",
1562+
"'Expiration time' claim ('exp') must be a numeric value representing the future time at which the assertion expires. - https://docs.github.com/",
15631563
);
15641564
expect(global.console.warn).toHaveBeenNthCalledWith(
15651565
2,
@@ -1635,7 +1635,7 @@ test("auth.hook(): handle 401 due to an exp timestamp in the past with 800 secon
16351635
expect(global.console.warn.mock.calls.length).toEqual(2);
16361636
expect(global.console.warn).toHaveBeenNthCalledWith(
16371637
1,
1638-
"'Expiration time' claim ('exp') must be a numeric value representing the future time at which the assertion expires.",
1638+
"'Expiration time' claim ('exp') must be a numeric value representing the future time at which the assertion expires. - https://docs.github.com/",
16391639
);
16401640
expect(global.console.warn).toHaveBeenNthCalledWith(
16411641
2,
@@ -1708,7 +1708,7 @@ test("auth.hook(): handle 401 due to an iat timestamp in the future", async () =
17081708
expect(global.console.warn.mock.calls.length).toEqual(2);
17091709
expect(global.console.warn).toHaveBeenNthCalledWith(
17101710
1,
1711-
"'Issued at' claim ('iat') must be an Integer representing the time that the assertion was issued.",
1711+
"'Issued at' claim ('iat') must be an Integer representing the time that the assertion was issued. - https://docs.github.com/",
17121712
);
17131713
expect(global.console.warn).toHaveBeenNthCalledWith(
17141714
2,

0 commit comments

Comments
 (0)