@jeremyckahn/farmhand
Version:
A farming game
13 lines (10 loc) • 426 B
text/typescript
import { itemsMap } from './maps.js'
describe('itemsMap', () => {
test('no item declares the same season as both high and low demand', () => {
const itemsWithOverlappingDemandSeasons = Object.values(itemsMap).filter(
({ highDemandSeasons, lowDemandSeasons }) =>
highDemandSeasons?.some(season => lowDemandSeasons?.includes(season))
)
expect(itemsWithOverlappingDemandSeasons).toEqual([])
})
})