5180 fichiers 38.5 Mo 0 téléchargements 206 vues mis à jour il y a 5 heures ui
nitro-v36-with-renderer-v36 / src / css / backgrounds / BackgroundsAirText.test.ts
BackgroundsAirText.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 css = readFileSync(join(process.cwd(), 'src/css/backgrounds/BackgroundsView.css'), 'utf8');
const view = readFileSync(join(process.cwd(), 'src/components/backgrounds/BackgroundsView.tsx'), 'utf8');

describe('profile background picker text (AIR conventions, no AIR layout)', () => {
    it('is regular Ubuntu with 12 px tabs', () => {
        expect(view).toContain('octane-backgrounds-window');
        expect(css).toMatch(/\.octane-backgrounds-window \{[^}]*HabboAirUbuntu[^}]*font-size: 12px/);
        expect(css).toMatch(/\.octane-backgrounds-window :where\(\*\):not\(svg, svg \*\) \{[^}]*HabboAirUbuntu, UbuntuRegular, sans-serif !important/);
        expect(css).toMatch(/\.octane-backgrounds-window \.octane-card-tab-item \{[^}]*font-size: 12px/);
    });

    it('sets the prompt as u_headline_small 14 px bold', () => {
        expect(view).toContain('octane-backgrounds-window__prompt');
        expect(css).toMatch(/\.octane-backgrounds-window__prompt \{[^}]*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