adding missing await

This commit is contained in:
Martin McKeaveney 2024-10-07 18:13:41 +01:00
parent 2e499c2dff
commit 3d83676c03
1 changed files with 1 additions and 1 deletions

View File

@ -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 })