Skip to content

Commit c3c433d

Browse files
committed
Fix unit tests
1 parent f0a7f84 commit c3c433d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/tests.spec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ describe("passport-saml /", function () {
16101610
fakeClock.restore();
16111611
fakeClock = sinon.useFakeTimers(Date.parse("2014-05-28T00:19:08Z"));
16121612
await assert.rejects(samlObj.validatePostResponseAsync(container), {
1613-
message: "SAML assertion expired",
1613+
message: "SAML assertion expired: clocks skewed too much",
16141614
});
16151615
});
16161616

@@ -1629,7 +1629,7 @@ describe("passport-saml /", function () {
16291629
fakeClock.restore();
16301630
fakeClock = sinon.useFakeTimers(Date.parse("2014-05-28T00:19:09Z"));
16311631
await assert.rejects(samlObj.validatePostResponseAsync(container), {
1632-
message: "SAML assertion expired",
1632+
message: "SAML assertion expired: clocks skewed too much",
16331633
});
16341634
});
16351635

@@ -1677,7 +1677,7 @@ describe("passport-saml /", function () {
16771677
fakeClock.restore();
16781678
fakeClock = sinon.useFakeTimers(Date.parse("2014-05-28T00:17:09Z"));
16791679
await assert.rejects(samlObj.validatePostResponseAsync(container), {
1680-
message: "SAML assertion expired",
1680+
message: "SAML assertion expired: assertion too old",
16811681
});
16821682
});
16831683

@@ -2013,7 +2013,7 @@ describe("validateRedirect()", function () {
20132013

20142014
await assert.rejects(
20152015
samlObj.validateRedirectAsync(this.request, this.request.originalQuery),
2016-
{ message: "SAML assertion expired" }
2016+
{ message: "SAML assertion expired: clocks skewed too much" }
20172017
);
20182018
});
20192019
it("errors if request has a bad signature", async function () {

0 commit comments

Comments
 (0)