This repository has been archived on 2024-04-06. You can view files and clone it, but cannot push or open issues or pull requests.
core-old/internal/bundb/checker_test.go
Dawid Wysokiński efbb3623ea
All checks were successful
continuous-integration/drone/push Build is passing
feat: add meta router (#83)
Reviewed-on: twhelp/core#83
2022-09-17 09:37:03 +00:00

22 lines
389 B
Go

package bundb_test
import (
"context"
"testing"
"gitea.dwysokinski.me/twhelp/core/internal/bundb"
"github.com/stretchr/testify/assert"
)
func TestChecker_Name(t *testing.T) {
t.Parallel()
assert.Equal(t, "db:ping", bundb.NewChecker(nil).Name())
}
func TestChecker_Check(t *testing.T) {
t.Parallel()
assert.NoError(t, bundb.NewChecker(newDB(t)).Check(context.Background()))
}