We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cabe6ec commit baf022dCopy full SHA for baf022d
test/elements.test.ts
@@ -0,0 +1,11 @@
1
+import type { ElementDefinition } from 'lib/element.js'
2
+import * as components from 'lib/seam/components/elements.js'
3
+
4
+test('unique element names', async () => {
5
+ const elementDefinitions = components as unknown as Record<
6
+ string,
7
+ Partial<ElementDefinition>
8
+ >
9
+ const elementNames = Object.values(elementDefinitions).map(({ name }) => name)
10
+ expect(elementNames).toEqual(Array.from(new Set(elementNames)))
11
+})
0 commit comments