Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

630 B
Raw Blame
import { describe, it, expect } from 'vitest';
import fs from 'fs';
import path from 'path';

describe('Healthcheck Service', () => {
  it('healthcheck script exists', () => {
    const healthcheckPath = path.resolve(__dirname, '../../services/healthcheck.js');
    expect(fs.existsSync(healthcheckPath)).toBe(true);
  });

  it('healthcheck file has correct structure', () => {
    const healthcheckPath = path.resolve(__dirname, '../../services/healthcheck.js');
    const content = fs.readFileSync(healthcheckPath, 'utf8');
    expect(content).toContain('healthCheck');
    expect(content).toContain('http.request');
  });
});