dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 0fa59d66a785862a7acc78276a6775fd0632e79c
parent 3068b64718f11b25d913ce5f437e1a8ea986934a
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Thu, 23 Mar 2023 14:48:10 -0700

add test

Diffstat:
Mpkg/web/handlers/api/v1/spamInterceptor_test.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/pkg/web/handlers/api/v1/spamInterceptor_test.go b/pkg/web/handlers/api/v1/spamInterceptor_test.go @@ -18,6 +18,7 @@ func Test_autoHellbanCheck(t *testing.T) { }{ {name: "", args: args{authUser: &database.User{GeneralMessagesCount: 2}, lowerCaseMessage: "hi new here"}, want: true}, {name: "", args: args{authUser: &database.User{GeneralMessagesCount: 2}, lowerCaseMessage: "hello anybody know of any legit market places ? its getting tough on here to find any that actually do what they supposed to "}, want: true}, + {name: "", args: args{authUser: &database.User{GeneralMessagesCount: 2}, lowerCaseMessage: "Hello Guys and Ladys someone can help me? I Have a Little problem.."}, want: true}, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) {