Skip to content

Commit

Permalink
update E2E test
Browse files Browse the repository at this point in the history
  • Loading branch information
bidyashish committed Dec 19, 2024
1 parent 5d4b424 commit f8477de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ describe("StudentAESTController(e2e)-getUploadedFile", () => {
.expect(HttpStatus.OK)
.then((response) => {
expect(response.headers["content-disposition"]).toBe(
`attachment; filename=${studentFile.fileName}`,
`attachment; filename*=UTF-8''${encodeURIComponent(
studentFile.fileName,
)}`,
);
expect(response.text).toStrictEqual(S3_DEFAULT_MOCKED_FILE_CONTENT);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ describe("StudentStudentsController(e2e)-getUploadedFile", () => {
.expect(HttpStatus.OK)
.then((response) => {
expect(response.headers["content-disposition"]).toBe(
`attachment; filename=${studentFile.fileName}`,
`attachment; filename*=UTF-8''${encodeURIComponent(
studentFile.fileName,
)}`,
);
expect(response.text).toStrictEqual(S3_DEFAULT_MOCKED_FILE_CONTENT);
});
Expand Down

0 comments on commit f8477de

Please sign in to comment.