1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-01-24 06:16:43 +02:00

use direct string comparison in the ApiError message test

This commit is contained in:
Gani Georgiev 2023-06-23 22:22:32 +03:00
parent 9bfcdd086a
commit 32de0aa40a

View File

@ -4,7 +4,6 @@ import (
"encoding/json"
"mime/multipart"
"path/filepath"
"strings"
"testing"
"github.com/dop251/goja"
@ -730,7 +729,7 @@ func TestApisBindsApiError(t *testing.T) {
t.Errorf("[%s] Expected Code %d, got %d", s.js, s.expectCode, apiErr.Code)
}
if !strings.Contains(apiErr.Message, s.expectMessage) {
if apiErr.Message != s.expectMessage {
t.Errorf("[%s] Expected Message %q, got %q", s.js, s.expectMessage, apiErr.Message)
}