5180 fichiers 38.5 Mo 0 téléchargements 355 vues mis à jour il y a 7 heures ui
nitro-v36-with-renderer-v36 / src / components / catalog / admin / studio / CatalogStudioTransferPanel.download.test.ts
CatalogStudioTransferPanel.download.test.ts 596 o Télécharger le fichier
import { readFileSync } from 'node:fs';
import { join } from 'node:path';
import { describe, expect, it } from 'vitest';

describe('CatalogStudioTransferPanel download', () => {
    it('revokes the file URL after the browser had time to start the download', () => {
        const source = readFileSync(join(process.cwd(), 'src/components/catalog/admin/studio/CatalogStudioTransferPanel.tsx'), 'utf8');

        expect(source).toContain('window.setTimeout(() => URL.revokeObjectURL(url), 1000);');
        expect(source).not.toMatch(/link\.click\(\);\s*URL\.revokeObjectURL\(url\);/);
    });
});
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