feat(sprint3): EconomyModule TetardCoin + TwitchModule EventSub — migration + 36 tests

This commit is contained in:
2026-03-17 07:10:45 +01:00
parent 1fce52f05c
commit 49b8aa1211
18 changed files with 4023 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
import { ConversionService } from './conversion.service';
describe('ConversionService', () => {
const service = new ConversionService();
it('10 Bits = 1 TC', () => expect(service.bitsToTC(10)).toBe(1));
it('15 Bits = 1 TC (floor)', () => expect(service.bitsToTC(15)).toBe(1));
it('0 Bits = 0 TC', () => expect(service.bitsToTC(0)).toBe(0));
it('9 Bits = 0 TC', () => expect(service.bitsToTC(9)).toBe(0));
it('100 Bits = 10 TC', () => expect(service.bitsToTC(100)).toBe(10));
it('1000 Bits = 100 TC', () => expect(service.bitsToTC(1000)).toBe(100));
it('throws on negative bits', () => expect(() => service.bitsToTC(-1)).toThrow());
});