Files
psp_panel/src/app/core/services/config.service.spec.ts
T
ahasani 07fec02ea1 feat: add logo image and RTL support styles
- Added logo image to assets.
- Implemented RTL support styles in rtlSupport.scss for various components including breadcrumb, datatable, and tree node toggle button.

chore: configure environment files for production, staging, and development

- Created environment.prod.ts for production settings.
- Created environment.staging.ts for staging settings.
- Created environment.ts for local development settings.

feat: define custom theme preset

- Added presets.ts to define a custom theme preset using PrimeUIX with specific component styles and semantic colors.

chore: set up proxy configuration for local development
2025-12-04 21:07:18 +03:30

38 lines
987 B
TypeScript

import { TestBed } from '@angular/core/testing';
import { ConfigService } from './config.service';
describe('ConfigService', () => {
let service: ConfigService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(ConfigService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
it('should return API base URL', () => {
expect(service.apiBaseUrl).toBeDefined();
expect(typeof service.apiBaseUrl).toBe('string');
});
it('should return host', () => {
expect(service.host).toBeDefined();
expect(typeof service.host).toBe('string');
});
it('should return port', () => {
expect(service.port).toBeDefined();
expect(typeof service.port).toBe('number');
});
it('should construct full API URL', () => {
const path = '/test/endpoint';
const fullUrl = service.getApiUrl(path);
expect(fullUrl).toContain(service.apiBaseUrl);
expect(fullUrl).toContain(path);
});
});