Skip to content

Commit b21a102

Browse files
committed
test(kosong): pass undefined directly to the profile tolerance tests
1 parent b09a6a6 commit b21a102

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/kosong/test/anthropic.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ describe('Anthropic model profile matching', () => {
105105
);
106106

107107
it('tolerates an undefined model name from a malformed config entry', () => {
108-
expect(matchKnownAnthropicModelProfile(undefined as unknown as string)).toBeUndefined();
109-
expect(matchUnknownClaudeProfile(undefined as unknown as string)).toBeUndefined();
110-
expect(parseAnthropicModelVersion(undefined as unknown as string)).toBeNull();
108+
expect(matchKnownAnthropicModelProfile(undefined)).toBeUndefined();
109+
expect(matchUnknownClaudeProfile(undefined)).toBeUndefined();
110+
expect(parseAnthropicModelVersion(undefined)).toBeNull();
111111
});
112112

113113
});

0 commit comments

Comments
 (0)