15 lines
272 B
Go
15 lines
272 B
Go
package handlers
|
|
|
|
import (
|
|
"testing"
|
|
"ttime/internal/database"
|
|
)
|
|
|
|
// The actual interface that we will use
|
|
func TestGlobalState(t *testing.T) {
|
|
db := database.DbConnect(":memory:")
|
|
gs := NewGlobalState(db)
|
|
if gs == nil {
|
|
t.Error("NewGlobalState returned nil")
|
|
}
|
|
}
|