This repository has been archived on 2026-02-01. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
siri-shortcuts/utils/commands/time.test.ts

13 lines
405 B
TypeScript

import { timeCommand } from './time';
describe('Time Command', () => {
it('should return current time', async () => {
const response = await timeCommand();
expect(response.success).toBe(true);
expect(response.message).toMatch(/It's currently \d{1,2}:\d{2} [AP]M/);
expect(response.data).toHaveProperty('timestamp');
expect(response.data).toHaveProperty('formattedTime');
});
});