feat: base shortcut code

This commit is contained in:
2025-01-18 21:54:26 +01:00
parent a820b29ea9
commit 3abe88c7a2
29 changed files with 5982 additions and 123 deletions

View File

@@ -0,0 +1,12 @@
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');
});
});