From 56beb58f9089f029c6ddd905c0a3800e199b2cf3 Mon Sep 17 00:00:00 2001 From: Kevin Szuchet Date: Wed, 22 Jan 2025 11:59:15 -0300 Subject: [PATCH] test: Tiny improvements on tests for more coverage --- test/unit/adapters/rpc-server.spec.ts | 2 +- test/unit/utils/pagination.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/adapters/rpc-server.spec.ts b/test/unit/adapters/rpc-server.spec.ts index ef6071d..028fa6b 100644 --- a/test/unit/adapters/rpc-server.spec.ts +++ b/test/unit/adapters/rpc-server.spec.ts @@ -1,4 +1,4 @@ -import { createRpcServerComponent } from ' ../../../src/adapters/rpc-server/rpc-server' +import { createRpcServerComponent } from ' ../../../src/adapters/rpc-server' import { IRPCServerComponent, RpcServerContext } from '../../../src/types' import { RpcServer, Transport, createRpcServer } from '@dcl/rpc' import { diff --git a/test/unit/utils/pagination.spec.ts b/test/unit/utils/pagination.spec.ts index ffb2728..2caa640 100644 --- a/test/unit/utils/pagination.spec.ts +++ b/test/unit/utils/pagination.spec.ts @@ -3,7 +3,7 @@ import { getPage } from '../../../src/utils/pagination' describe('pagination', () => { describe('getPage', () => { it('should return the correct page number', () => { - expect(getPage(10, 0)).toBe(1) + expect(getPage(10)).toBe(1) expect(getPage(10, 10)).toBe(2) expect(getPage(10, 20)).toBe(3) })