blob: 77e79fcc131a4aecce390c8287bc99b2ed48d4c0 [file] [log] [blame]
package alerts
import (
"testing"
"go.skia.org/infra/go/testutils"
"github.com/stretchr/testify/assert"
)
func TestConfig(t *testing.T) {
testutils.SmallTest(t)
a := NewConfig()
assert.Equal(t, "-1", a.IdAsString())
a.StringToId("2")
assert.Equal(t, 2, a.ID)
assert.Equal(t, "2", a.IdAsString())
}