package controller

import (
	"math"
	"testing"
	"time"

	"github.com/stretchr/testify/assert"
)

func TestStep(t *testing.T) {
	bigRange := 7 * 24 * time.Hour
	step := time.Duration(math.Ceil(bigRange.Minutes()/maxDataPoints)) * time.Minute
	assert.Equal(t, 5*time.Minute, step)
}
