Skip to content

Commit

Permalink
Fix create test for the Svelte template
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Oct 4, 2024
1 parent 44d4169 commit 858df1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/new-svelte/newtab/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
<noscript>You need to enable JavaScript to run this extension.</noscript>
<div id="app"></div>
</body>
<script type="module" src="./script.ts"></script>
<script type="module" src="./scripts.ts"></script>
</html>
File renamed without changes.
4 changes: 2 additions & 2 deletions programs/create/create.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('extension create', () => {
// TODO: cezaraugusto this is not going to scale well
// but better than nothing for now.
const ext = template.uiFramework
? template.uiFramework === 'vue'
? template.uiFramework === 'vue' || template.uiFramework === 'svelte'
? 'ts'
: 'tsx'
: template.configFiles?.includes('tsconfig.json')
Expand All @@ -106,7 +106,7 @@ describe('extension create', () => {
template.name,
`${context.toLowerCase()}/scripts.${ext}`
)
).toBeTruthy()
).toBeTruthy()
}

// Expect [uiContext]/styles.sass|less|css for styles
Expand Down

0 comments on commit 858df1d

Please sign in to comment.