Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi committed Aug 21, 2024
1 parent da9bba0 commit 5e04f7a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ describe('MeController', () => {
version: 'v4',
personalization_survey_n8n_version: '1.0.0',
personalization_survey_submitted_at: new Date().toISOString(),
[fieldName]: ['<script>alert("XSS")</script>'],
[fieldName]: '<script>alert("XSS")</script>',
};

await expect(controller.storeSurveyAnswers(req)).rejects.toThrowError(BadRequestError);
Expand Down

0 comments on commit 5e04f7a

Please sign in to comment.