salat
Version:
Daily Moroccan prayers time, right in your console, at the tip of your fingers
20 lines (19 loc) • 794 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { render } from 'ink-testing-library';
import { describe, expect, it } from 'vitest';
import HelpApp from './HelpApp.js';
describe('HelpApp', () => {
it('should render help guide', () => {
const { lastFrame } = render(_jsx(HelpApp, {}));
expect(lastFrame()).toContain('SALAT CLI GUIDE');
expect(lastFrame()).toContain('Usage:');
expect(lastFrame()).toContain('Commands:');
expect(lastFrame()).toContain('Options:');
});
it('should list available commands', () => {
const { lastFrame } = render(_jsx(HelpApp, {}));
expect(lastFrame()).toContain('times [city]');
expect(lastFrame()).toContain('guide');
expect(lastFrame()).toContain('cities');
});
});