Add the checkIcon test, so that tests aren't failing anymore

This commit is contained in:
David Soria Parra 2025-09-09 14:30:40 +01:00
commit 4de54fed0c
No known key found for this signature in database

View file

@ -663,6 +663,13 @@ function checkLoggingLevel(
sdk = spec;
spec = sdk;
}
function checkIcon(
sdk: RemovePassthrough<SDKTypes.Icon>,
spec: SpecTypes.Icon
) {
sdk = spec;
spec = sdk;
}
// This file is .gitignore'd, and fetched by `npm run fetch:spec-types` (called by `npm run test`)
const SPEC_TYPES_FILE = 'spec.types.ts';
@ -692,7 +699,7 @@ describe('Spec Types', () => {
it('should define some expected types', () => {
expect(specTypes).toContain('JSONRPCNotification');
expect(specTypes).toContain('ElicitResult');
expect(specTypes).toHaveLength(92);
expect(specTypes).toHaveLength(93);
});
it('should have up to date list of missing sdk types', () => {