jx/internal/folio/events_test.go
Matthew Rich b61010b99a
All checks were successful
Lint / golangci-lint (push) Successful in 10m0s
Declarative Tests / test (push) Successful in 29s
add golangci-lint package for alpine
2024-10-09 23:36:11 +00:00

23 lines
375 B
Go

// Copyright 2024 Matthew Rich <matthewrich.conf@gmail.com>. All rights reserved.
package folio
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestNewEvent(t *testing.T) {
var et EventType
events := NewEvents()
assert.NotNil(t, events)
assert.Nil(t, et.Set(EventTypeLoad))
assert.Nil(t, events.Set(et, EventHandler(`
print('hello world')
`)))
}