Skip to content

Commit

Permalink
adding missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
shogunpurple committed Oct 7, 2024
1 parent 2e499c2 commit 3d83676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/server/src/sdk/app/rows/tests/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ describe("validate", () => {
"/* This is a comment */ SELECT * FROM users",
'<iframe src="http://malicious-site.com"></iframe>',
])("test potentially unsafe input: %s", async input => {
withEnv({ XSS_SAFE_MODE: "1" }, async () => {
await withEnv({ XSS_SAFE_MODE: "1" }, async () => {
const table = getTable()
const row = { text: input }
const output = await validate({ source: table, row })
Expand Down

0 comments on commit 3d83676

Please sign in to comment.