moa-rl-env / moav2 /src /__tests__ /window-constraints.test.ts
natnael kahssay
feat: use real moav2 source as RL task suite — symlinked sandbox, 3 real service tasks
ce25387
import { describe, it, expect } from 'vitest'
import { WINDOW_CONSTRAINTS } from '../electron/window-constraints'
describe('WINDOW_CONSTRAINTS', () => {
it('enforces a minimum width to prevent resize thrashing', () => {
expect(WINDOW_CONSTRAINTS.minWidth).toBeGreaterThanOrEqual(480)
})
it('enforces a minimum height to prevent resize thrashing', () => {
expect(WINDOW_CONSTRAINTS.minHeight).toBeGreaterThanOrEqual(360)
})
it('default size is larger than minimum', () => {
expect(WINDOW_CONSTRAINTS.width).toBeGreaterThan(WINDOW_CONSTRAINTS.minWidth)
expect(WINDOW_CONSTRAINTS.height).toBeGreaterThan(WINDOW_CONSTRAINTS.minHeight)
})
})