test: Add JSON logging handler to recur test
This commit is contained in:
parent
191c3f34dc
commit
c515b8f21e
|
@ -2,6 +2,7 @@ package main
|
|||
|
||||
import (
|
||||
"log/slog"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
|
@ -13,7 +14,7 @@ func TestRecur(t *testing.T) {
|
|||
|
||||
now := time.Date(2024, 1, 1, 10, 0, 0, 0, time.UTC)
|
||||
mem := NewMemory()
|
||||
rec := NewRecur(mem, mem, time.Second, slog.New())
|
||||
rec := NewRecur(mem, mem, time.Second, slog.New(slog.NewJSONHandler(os.Stdout, nil)))
|
||||
|
||||
// Create a recurring item
|
||||
recur := &item.Recur{
|
||||
|
|
Loading…
Reference in New Issue