validate web app hash

bot-api-6.1
crashiura 2022-07-03 02:43:22 +03:00
parent ffc28cfbac
commit 189292093b
1 changed files with 0 additions and 12 deletions

View File

@ -248,18 +248,6 @@ func TestValidateWebAppData(t *testing.T) {
}
})
t.Run("error bad init data", func(t *testing.T) {
token := "5473903189:AAFnHnISQMP5UQQ5MEaoEWvxeiwNgz2CN2U"
initData := "asdfasdfasdfasdfasdf"
result, err := ValidateWebAppData(token, initData)
if err == nil {
t.Fail()
}
if result {
t.Fail()
}
})
t.Run("error", func(t *testing.T) {
token := "5473903189:AAFnHnISQMP5UQQ5MEaoEWvxeiwNgz2CN2U"
initData := "asdfasdfasdfasdfasdf"