5180 fichiers 38.5 Mo 0 téléchargements 242 vues mis à jour il y a 5 heures ui
nitro-v36-with-renderer-v36 / src / css / octanepedia / OctanepediaAirText.test.ts
OctanepediaAirText.test.ts 1.1 Ko Télécharger le fichier
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
import { describe, expect, it } from 'vitest';

const read = (path: string) => readFileSync(join(process.cwd(), path), 'utf8');

const css = read('src/css/octanepedia/OctanepediaAirText.css');
const view = read('src/components/octanepedia/OctanepediaView.tsx');

describe('octanepedia text (AIR conventions)', () => {
    it('sets the page in regular Ubuntu, 12 px pure black', () => {
        expect(view).toContain("import '../../css/octanepedia/OctanepediaAirText.css';");
        expect(view).toContain('octanepedia__page');
        expect(css).toMatch(/\.octanepedia \.octanepedia__page :where\(\*\):not\(svg, svg \*, code, pre, kbd\) \{[^}]*HabboAirUbuntu/);
        expect(css).toMatch(/\.octanepedia \.octanepedia__page \{[^}]*color: #000000;[^}]*font-size: 12px/);
    });

    it('draws headings 16 / 14 px bold', () => {
        expect(css).toMatch(/:where\(h1, h2\) \{[^}]*font-size: 16px;[^}]*font-weight: 700/);
        expect(css).toMatch(/:where\(h3, h4, h5, h6\) \{[^}]*font-size: 14px;[^}]*font-weight: 700/);
    });
});
15Sujets
1Dépôts
20Membres
2En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser