2025-05-11 20:12:12 +02:00

27 lines
747 B
TypeScript

import { beforeAll, describe, expect, it } from '@jest/globals';
import {
getAppearancePreferences,
startTestServer,
updateAppearancePreferences
} from '../../../helpers/request-helpers.js';
describe('Appearance API Tests', () => {
beforeAll(() => {
startTestServer();
});
describe('Get Appearance Preferences', () => {
it('should return 402 status code as it is a PRO feature', async () => {
const response = await getAppearancePreferences();
expect(response.status).toBe(402);
});
});
describe('Update Appearance Preferences', () => {
it('should return 402 status code as it is a PRO feature', async () => {
const response = await updateAppearancePreferences({});
expect(response.status).toBe(402);
});
});
});