14 lines
536 B
TypeScript
14 lines
536 B
TypeScript
import { buildFishingGauge, buildFishingLane } from '../../src/services/FishingService';
|
|
|
|
describe('FishingService helpers', () => {
|
|
it('renders a gauge with filled and empty segments', () => {
|
|
expect(buildFishingGauge(50, 100, 10)).toBe('█████░░░░░');
|
|
});
|
|
|
|
it('renders the fish lane for each position', () => {
|
|
expect(buildFishingLane('left')).toContain('🐟');
|
|
expect(buildFishingLane('center')).toBe('· 🐟 ·');
|
|
expect(buildFishingLane('right')).toBe('· · 🐟');
|
|
});
|
|
});
|