fix: epochSchedule test and lint

This commit is contained in:
Jack May
2020-02-25 11:30:08 -08:00
committed by Michael Vines
parent 7d69cad81b
commit e3516bbcfd
2 changed files with 4 additions and 5 deletions

View File

@ -342,12 +342,12 @@ test('get epoch schedule', async () => {
'leaderScheduleSlotOffset',
'slotsPerEpoch',
]) {
expect(epochSchedule).toHaveProperty('warmup');
expect(epochSchedule).toHaveProperty(key);
expect(epochSchedule[key]).toBeGreaterThan(0);
if (epochSchedule.warmup) {
expect(epochSchedule[key]).toBeGreaterThan(0);
}
}
expect(epochSchedule).toHaveProperty('warmup');
expect(epochSchedule.warmup).toBeTruthy();
});
test('get slot', async () => {