Skip to content

Commit f123627

Browse files
test: correct nonce lookup
1 parent 437a0fb commit f123627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ssrNonce.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ describe('[nuxt-security] Nonce', async () => {
112112
const res = await fetch('/string-script').then(res=>res.text())
113113

114114
const body = res.match(/<div class="(.+)Hello/)
115-
const hasNonce = body[1].includes('nonce')
115+
const hasNonce = body[1].includes('nonce=')
116116

117117
expect(res).toBeDefined()
118118
expect(res).toBeTruthy()

0 commit comments

Comments
 (0)