Skip to content

Commit 4de54fe

Browse files
committed
Add the checkIcon test, so that tests aren't failing anymore
1 parent 217756e commit 4de54fe

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/spec.types.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,13 @@ function checkLoggingLevel(
663663
sdk = spec;
664664
spec = sdk;
665665
}
666+
function checkIcon(
667+
sdk: RemovePassthrough<SDKTypes.Icon>,
668+
spec: SpecTypes.Icon
669+
) {
670+
sdk = spec;
671+
spec = sdk;
672+
}
666673

667674
// This file is .gitignore'd, and fetched by `npm run fetch:spec-types` (called by `npm run test`)
668675
const SPEC_TYPES_FILE = 'spec.types.ts';
@@ -692,7 +699,7 @@ describe('Spec Types', () => {
692699
it('should define some expected types', () => {
693700
expect(specTypes).toContain('JSONRPCNotification');
694701
expect(specTypes).toContain('ElicitResult');
695-
expect(specTypes).toHaveLength(92);
702+
expect(specTypes).toHaveLength(93);
696703
});
697704

698705
it('should have up to date list of missing sdk types', () => {

0 commit comments

Comments
 (0)