5180 fichiers 38.5 Mo 0 téléchargements 482 vues mis à jour il y a 7 heures ui
nitro-v36-with-renderer-v36 / src / components / room / widgets / furniture / FurnitureVimeoDisplayView.sandbox.test.ts
FurnitureVimeoDisplayView.sandbox.test.ts 635 o Télécharger le fichier
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
import { describe, expect, it } from 'vitest';

describe('FurnitureVimeoDisplayView frame', () => {
    it('sandboxes the player so it can play but not navigate the client away', () => {
        const source = readFileSync(join(process.cwd(), 'src/components/room/widgets/furniture/FurnitureVimeoDisplayView.tsx'), 'utf8');
        const sandbox = source.match(/sandbox="([^"]*)"/);

        expect(sandbox).not.toBeNull();
        expect(sandbox?.[1]).toContain('allow-scripts');
        expect(sandbox?.[1]).not.toContain('allow-top-navigation');
    });
});
15Sujets
1Dépôts
20Membres
3En 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