From 394633425253d4b680c93814f111359807f2c329 Mon Sep 17 00:00:00 2001 From: Uri Shaked Date: Thu, 5 Jan 2023 20:46:24 +0200 Subject: chore(deps): upgrade typescript, jest, eslint also upgrade related dependencies: ts-node, ts-jest --- src/cpu/cpu.spec.ts | 6 +++--- src/peripherals/gpio.spec.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/cpu/cpu.spec.ts b/src/cpu/cpu.spec.ts index 969b51c..e62dcc8 100644 --- a/src/cpu/cpu.spec.ts +++ b/src/cpu/cpu.spec.ts @@ -1,4 +1,4 @@ -import { CPU } from './cpu'; +import { AVRClockEventCallback, CPU } from './cpu'; type ITestEvent = [number, number]; // Expected cycles, actual cycles @@ -47,7 +47,7 @@ describe('cpu', () => { it('should update the number of cycles for the given clock event', () => { const cpu = new CPU(new Uint16Array(1024), 0x1000); const events: ITestEvent[] = []; - const callbacks = []; + const callbacks: AVRClockEventCallback[] = []; for (const i of [1, 4, 10]) { callbacks[i] = cpu.addClockEvent(() => events.push([i, cpu.cycles]), i); } @@ -68,7 +68,7 @@ describe('cpu', () => { it('should remove the given clock event', () => { const cpu = new CPU(new Uint16Array(1024), 0x1000); const events: ITestEvent[] = []; - const callbacks = []; + const callbacks: AVRClockEventCallback[] = []; for (const i of [1, 4, 10]) { callbacks[i] = cpu.addClockEvent(() => events.push([i, cpu.cycles]), i); } diff --git a/src/peripherals/gpio.spec.ts b/src/peripherals/gpio.spec.ts index 67cd779..755476e 100644 --- a/src/peripherals/gpio.spec.ts +++ b/src/peripherals/gpio.spec.ts @@ -137,7 +137,7 @@ describe('GPIO', () => { cpu.writeData(DDRB, 0x0f); port.removeListener(listener); cpu.writeData(PORTB, 0x99); - expect(listener).toBeCalledTimes(1); + expect(listener).toHaveBeenCalledTimes(1); }); }); -- cgit v1.2.3