adding missing await
This commit is contained in:
parent
2e499c2dff
commit
3d83676c03
|
@ -364,7 +364,7 @@ describe("validate", () => {
|
||||||
"/* This is a comment */ SELECT * FROM users",
|
"/* This is a comment */ SELECT * FROM users",
|
||||||
'<iframe src="http://malicious-site.com"></iframe>',
|
'<iframe src="http://malicious-site.com"></iframe>',
|
||||||
])("test potentially unsafe input: %s", async input => {
|
])("test potentially unsafe input: %s", async input => {
|
||||||
withEnv({ XSS_SAFE_MODE: "1" }, async () => {
|
await withEnv({ XSS_SAFE_MODE: "1" }, async () => {
|
||||||
const table = getTable()
|
const table = getTable()
|
||||||
const row = { text: input }
|
const row = { text: input }
|
||||||
const output = await validate({ source: table, row })
|
const output = await validate({ source: table, row })
|
||||||
|
|
Loading…
Reference in New Issue