Skip to content

Commit

Permalink
test: use mount instead of new
Browse files Browse the repository at this point in the history
  • Loading branch information
metonym committed Oct 20, 2024
1 parent 965f863 commit 08b3b55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/Icons.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
} from "carbon-icons-svelte";
import type { CarbonIconProps } from "carbon-icons-svelte";
import Icon from "carbon-icons-svelte/lib/Accessibility.svelte";
import { mount } from "svelte";
const props: CarbonIconProps = {
size: 32,
fill: "red",
};
const icon = new Icon({ target: document.body, props });
const icon = mount(Icon, { target: document.body, props });
$: console.log(icon.$$prop_def);
$: console.log(typeof Assembly);
Expand Down

0 comments on commit 08b3b55

Please sign in to comment.