mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-14 07:44:31 +00:00
c98769b7f2
Also do some linting and add documentation for some functions
16 lines
269 B
Go
16 lines
269 B
Go
package utils
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestGetUnixEpochFrom(t *testing.T) {
|
|
loc := time.UTC
|
|
timestamp := GetUnixEpochFrom(time.Date(2019, 1, 1, 0, 0, 0, 0, loc))
|
|
|
|
require.Equal(t, float64(1546300800), timestamp)
|
|
}
|