Skip to content

Commit 959dc98

Browse files
author
lessjs-bot
committed
fix(ui): fix .ts→.tsx template literal imports in components.test.ts
1 parent 7a96192 commit 959dc98

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/ui/__tests__/components.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ const COMPONENT_FILES = [
120120

121121
for (const name of COMPONENT_FILES) {
122122
Deno.test(`less-${name}: exports tagName`, async () => {
123-
const mod = await import(`../src/${name}.ts`);
123+
const mod = await import(`../src/${name}.tsx`);
124124
assertExists(mod.tagName, `${name} must export tagName`);
125125
assertEquals(typeof mod.tagName, 'string');
126126
// Custom Elements require hyphen in tag name
127127
assertExists(mod.tagName.includes('-'), `tagName "${mod.tagName}" must contain a hyphen`);
128128
});
129129

130130
Deno.test(`less-${name}: exports DsdElement-compatible class`, async () => {
131-
const mod = await import(`../src/${name}.ts`);
131+
const mod = await import(`../src/${name}.tsx`);
132132
const className = Object.keys(mod).find((k) => k !== 'tagName' && typeof mod[k] === 'function');
133133
assertExists(className, `${name} should export a class`);
134134
const Cls = mod[className as keyof typeof mod];

0 commit comments

Comments
 (0)