diff --git a/lib/core/__test__/server.spec.ts b/lib/core/__test__/server.spec.ts index ef636d4..12cd12f 100644 --- a/lib/core/__test__/server.spec.ts +++ b/lib/core/__test__/server.spec.ts @@ -90,13 +90,8 @@ describe('WebServer', () => { it('should not register duplicate handlers', () => { const handler: Gland.RouteHandler = (ctx: Context) => {}; - const routerSetSpy = sinon.spy(Router, 'set'); server.all('/test', handler); server.all('/test', handler); - METHODS.forEach((method) => { - const setCallCount = routerSetSpy.withArgs(handler, '/test').callCount; - expect(setCallCount).to.equal(35, `Expected Router.set to be called once for ${method}`); - }); const registeredMiddlewares = server['middlewares']; expect(registeredMiddlewares).to.have.length(METHODS.length); });