mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
18 lines
333 B
Go
18 lines
333 B
Go
package dashboard
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func Test_allActions_ordering(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
last := -1
|
|
for idx, entry := range DefaultActions {
|
|
require.Greater(t, entry.Roll, last, "roll table must be in ascending order, entry %d is out of order", idx)
|
|
last = entry.Roll
|
|
}
|
|
}
|