зеркало из https://github.com/github/docs.git
use regex as a less brittle check for any number of zeros
This commit is contained in:
Родитель
d0a136caee
Коммит
d7f78d8238
|
@ -48,7 +48,8 @@ describe('GitHub Actions workflows', () => {
|
|||
test('no scheduled workflows run on the hour', () => {
|
||||
const hourlySchedules = scheduledWorkflows.filter(schedule => {
|
||||
const hour = schedule.split(' ')[0]
|
||||
return hour === '0' || hour === '00'
|
||||
// return any minute cron segments that equal 0, 00, 000, etc.
|
||||
return !/[^0]/.test(hour)
|
||||
})
|
||||
expect(hourlySchedules).toEqual([])
|
||||
})
|
||||
|
|
Загрузка…
Ссылка в новой задаче