chore: add unit tests (#1615)
* test: add more tests * test: add more tests
This commit is contained in:
@@ -151,6 +151,8 @@ func TestContentSecurity(t *testing.T) {
|
||||
return
|
||||
}
|
||||
|
||||
encrypted := test.mode != "0"
|
||||
assert.Equal(t, encrypted, header.Encrypted())
|
||||
assert.Equal(t, test.code, VerifySignature(r, header, time.Minute))
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user