Skip to content

Commit

Permalink
Fix certificate tests on systems which don’t run in UTC timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
florianreinhart committed Jun 1, 2017
1 parent ebf1e31 commit 51545c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/credentials/certificate/APNCertificate.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ describe("APNCertificate", function() {
expect(new APNCertificate(cert).validity())
.to.have.property("notBefore")
.and
.to.eql(new Date("2015-01-01T00:00:00"));
.to.eql(new Date("2015-01-01T00:00:00Z"));
});

it("returns an object containing notAfter", function() {
expect(new APNCertificate(cert).validity())
.to.have.property("notAfter")
.and
.to.eql(new Date("2025-01-01T00:00:00"));
.to.eql(new Date("2025-01-01T00:00:00Z"));
});
});

Expand Down

0 comments on commit 51545c7

Please # to comment.