5180 fichiers 38.5 Mo 0 téléchargements 208 vues mis à jour il y a 5 heures ui
nitro-v36-with-renderer-v36 / src / css / toolbar / ToolbarAirText.test.ts
ToolbarAirText.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/toolbar/ToolBar.css'), 'utf8');

describe('toolbar text (bottom_bar_left, new_items_label, prog_menu_view)', () => {
    it('draws the new items label in u_small: 10 px regular white AIR Ubuntu', () => {
        expect(css).toMatch(/\.octane-toolbar-new-additions \{[^}]*color: #ffffff;[^}]*HabboAirUbuntu[^}]*font-size: 10px;[^}]*font-weight: 400/);
    });

    it('draws unseen counters as the red new_items_counter with an 11 px bold white count', () => {
        expect(css).toMatch(/\.octane-toolbar-count \{[^}]*background: #ee2924;[^}]*color: #ffffff;[^}]*HabboAirUbuntu[^}]*font-size: 11px;[^}]*font-weight: 700/);
        expect(css).toMatch(/@layer base \{\s*\/\*[^*]*\*\/\s*\.octane-toolbar-count \{[^}]*border-color: #000000 !important/);
    });

    it('puts the progression menu captions in regular AIR Ubuntu', () => {
        expect(css).toMatch(/\.octane-toolbar-progression \.octane-toolbar-progression-label \{[^}]*HabboAirUbuntu/);
    });
});
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