Skip to content

Commit

Permalink
test(api): fix copy paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-telescoop committed Jan 7, 2025
1 parent 8544cbf commit 3ad45f7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/api/src/modules/documents/documents.service.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,11 @@ describe("Documents Service", () => {

describe("sanitizeDocumentRequest", () => {
it.each`
property | character | unsafe | safe
${"nom"} | ${"slash"} | ${"with/Character/Slash"} | ${"Slash"}
${"nom"} | ${"backslash"} | ${"with/Character/Backslash"} | ${"Backslash"}
${"type"} | ${"slash"} | ${"with/Character/Slash"} | ${"Slash"}
${"type"} | ${"backslash"} | ${"with/Character/Backslash"} | ${"Backslash"}
property | character | unsafe | safe
${"nom"} | ${"slash"} | ${"with/Character/Slash"} | ${"Slash"}
${"nom"} | ${"backslash"} | ${"with\\Character\\Backslash"} | ${"Backslash"}
${"type"} | ${"slash"} | ${"with/Character/Slash"} | ${"Slash"}
${"type"} | ${"backslash"} | ${"with\\Character\\Backslash"} | ${"Backslash"}
`("removes $character in $property", ({ property, unsafe, safe: expected }) => {
// @ts-expect-error -- test private method
const actual = documentsService.sanitizeDocumentRequest({
Expand Down

0 comments on commit 3ad45f7

Please sign in to comment.