| 1 |
package nowtime |
| 2 |
|
| 3 |
import ( |
| 4 |
"testing" |
| 5 |
"time" |
| 6 |
|
| 7 |
"github.com/stretchr/testify/require" |
| 8 |
) |
| 9 |
|
| 10 |
func TestGet(t *testing.T) { |
| 11 |
nowTime := Get() |
| 12 |
require.NotNil(t, nowTime) |
| 13 |
require.GreaterOrEqual(t, time.Now().Unix(), nowTime.Unix()) |
| 14 |
} |