Annoucement expiration time parsing

This commit is contained in:
Quentin McGaw (desktop)
2020-02-25 11:46:52 +00:00
parent 9239e840c4
commit dd0170afb1
4 changed files with 29 additions and 10 deletions

View File

@@ -0,0 +1,17 @@
package constants
import (
"testing"
"time"
"github.com/stretchr/testify/assert"
)
func Test_AnnoucementExpiration(t *testing.T) {
t.Parallel()
if len(AnnoucementExpiration) == 0 {
return
}
_, err := time.Parse("2006-01-02", AnnoucementExpiration)
assert.NoError(t, err)
}