Skip to content

Commit cd27064

Browse files
committed
tests: set cache duration to 2 hours for stats card
1 parent c01bac4 commit cd27064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/renderStatsCard.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ describe("Test GitHub Readme Profile API", () => {
6565
expect(getData).toHaveBeenCalledWith(mockRequest.query.username);
6666
expect(mockResponse.json).toHaveBeenCalledWith(exampleUserData);
6767
expect(mockResponse.send).not.toHaveBeenCalled();
68-
expect(mockResponse.setHeader).toHaveBeenCalledWith("Cache-Control", "s-maxage=3600, stale-while-revalidate");
68+
expect(mockResponse.setHeader).toHaveBeenCalledWith("Cache-Control", "s-maxage=7200, stale-while-revalidate");
6969
});
7070

7171
it("should handle request and generate SVG response", async () => {

0 commit comments

Comments
 (0)