Files
gluetun/internal/constants/splash_test.go

18 lines
289 B
Go
Raw Normal View History

2020-02-25 11:46:52 +00:00
package constants
import (
"testing"
"time"
"github.com/stretchr/testify/assert"
)
func Test_AnnouncementExpiration(t *testing.T) {
2020-02-25 11:46:52 +00:00
t.Parallel()
if len(AnnouncementExpiration) == 0 {
2020-02-25 11:46:52 +00:00
return
}
_, err := time.Parse("2006-01-02", AnnouncementExpiration)
2020-02-25 11:46:52 +00:00
assert.NoError(t, err)
}