import { messageReplyFromError } from '../../src/core/message-reply.js';
import { describe, expect, it } from 'bun:test';
describe('Message Reply', () => {
    it('handles non-Errors being thrown', () => {
        let response;
        try {
            throw 'Some error message';
        }
        catch (e) {
            response = messageReplyFromError(e, 500);
        }
        expect(response.status.code).toBe(500);
        expect(response.status.detail).toBe('Error');
    });
});
//# sourceMappingURL=message-reply.spec.js.map