feat: add UI components for alert dialog, badge, checkbox, dialog, label, select, sheet, table, textarea
- Implemented AlertDialog component with overlay, content, header, footer, title, description, action, and cancel functionalities. - Created Badge component with variant support for different styles. - Developed Checkbox component with custom styling and indicator. - Added Dialog component with trigger, close, overlay, content, header, footer, title, and description. - Introduced Label component for form elements. - Built Select component with trigger, content, group, item, label, separator, and scroll buttons. - Created Sheet component with trigger, close, overlay, content, header, footer, title, and description. - Implemented Table component with header, body, footer, row, head, cell, and caption. - Added Textarea component with custom styling. - Established API service for game management with CRUD operations and metadata search functionalities. - Updated dependencies in package lock files.
This commit is contained in:
23
backend/dist/tests/services/checksumService.spec.js
vendored
Normal file
23
backend/dist/tests/services/checksumService.spec.js
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const vitest_1 = require("vitest");
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const checksumService_1 = require("../../src/services/checksumService");
|
||||
const fixturesDir = path_1.default.join(__dirname, '..', 'fixtures');
|
||||
const simpleRom = path_1.default.join(fixturesDir, 'simple-rom.bin');
|
||||
(0, vitest_1.describe)('services/checksumService', () => {
|
||||
(0, vitest_1.it)('exporta computeHashes', () => {
|
||||
(0, vitest_1.expect)(typeof checksumService_1.computeHashes).toBe('function');
|
||||
});
|
||||
(0, vitest_1.it)('calcula hashes', async () => {
|
||||
const meta = await (0, checksumService_1.computeHashes)(simpleRom);
|
||||
(0, vitest_1.expect)(meta).toBeDefined();
|
||||
(0, vitest_1.expect)(meta.size).toBeGreaterThan(0);
|
||||
(0, vitest_1.expect)(meta.md5).toBeDefined();
|
||||
(0, vitest_1.expect)(meta.sha1).toBeDefined();
|
||||
(0, vitest_1.expect)(meta.crc32).toBeDefined();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user