Skip to content

Commit f99a400

Browse files
committed
Fix test to handle new 'any' attribute type
Add case for 'any' type in attribute example test to prevent throwing on valid 'any' type attributes with examples.
1 parent 386d91f commit f99a400

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎test/attributes.test.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ describe('attribute json', async () => {
5858
expect(Array.isArray(content.example)).toBe(true);
5959
expect((content.example as boolean[]).every((e: boolean) => typeof e === 'boolean')).toBe(true);
6060
break;
61+
case 'any':
62+
break;
6163
default:
6264
throw new Error('Invalid type');
6365
}

0 commit comments

Comments
 (0)