Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
sahinvardar authored Dec 11, 2024
2 parents 90890e6 + 2c55956 commit 0df6acf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/print-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ const PRINTERS: PrinterCollection = {
SvelteElement: new ElementPrinter(),
SvelteComponent: new ElementPrinter(),
SvelteFragment: new ElementPrinter(),
TitleElement: new ElementPrinter(),
Attribute: NoOp,
SpreadAttribute: NoOp,
OnDirective: NoOp,
Expand Down
2 changes: 2 additions & 0 deletions src/tests/print-html.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,8 @@ describe('Svelte Component', () => {

test('<svelte:head>', () => {
testHtmlPrinter('<svelte:head><link rel="stylesheet" href="/tutorial/dark-theme.css"></svelte:head>');
testHtmlPrinter('<svelte:head><title>title</title></svelte:head>');
testHtmlPrinter('<svelte:head><meta name="description" content="This is where the description goes for SEO"></svelte:head>');
});

test('<svelte:element>', () => {
Expand Down

0 comments on commit 0df6acf

Please sign in to comment.