mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 20:35:24 +01:00
b5a99eba7f
* refactor(runners): extract jobs to separate entity
15 lines
237 B
Go
15 lines
237 B
Go
package schedules
|
|
|
|
import "testing"
|
|
|
|
func TestValidateCronFormat(t *testing.T) {
|
|
err := ValidateCronFormat("* * * *")
|
|
if err == nil {
|
|
t.Fatal("")
|
|
}
|
|
|
|
err = ValidateCronFormat("* * 1 * *")
|
|
if err != nil {
|
|
t.Fatal(err.Error())
|
|
}
|
|
} |