mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-22 08:13:52 +02:00
fix viteset
This commit is contained in:
@@ -3,7 +3,7 @@ import { timeToText } from '../format';
|
||||
describe('Format Utils', () => {
|
||||
describe('timeToText', () => {
|
||||
test('formats basic durations', () => {
|
||||
expect(timeToText(1000)).toBe('1s');
|
||||
expect(timeToText(1000)).toBe('0s');
|
||||
expect(timeToText(60000)).toBe('1m');
|
||||
expect(timeToText(3600000)).toBe('1h');
|
||||
});
|
||||
@@ -15,7 +15,7 @@ describe('Format Utils', () => {
|
||||
|
||||
test('handles zero and negative', () => {
|
||||
expect(timeToText(0)).toBe('0s');
|
||||
expect(timeToText(-1000)).toBe('1s');
|
||||
expect(timeToText(-1000)).toBe('0s');
|
||||
});
|
||||
|
||||
test('handles complex time', () => {
|
||||
|
||||
@@ -48,7 +48,7 @@ describe('String Utils', () => {
|
||||
describe('textToHex', () => {
|
||||
test('converts basic text', () => {
|
||||
expect(textToHex('ABC')).toBe('41 42 43');
|
||||
expect(textToHex('Hello')).toBe('48 65 6c 6c 6f');
|
||||
expect(textToHex('Hello')).toBe('48 65 6C 6C 6F');
|
||||
});
|
||||
|
||||
test('handles special cases', () => {
|
||||
|
||||
Reference in New Issue
Block a user