Skip to content

Commit

Permalink
Another test fix for Svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
cezaraugusto committed Oct 4, 2024
1 parent 173dcb4 commit 21f5698
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions programs/create/create.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('extension create', () => {
template.name,
`${context.toLowerCase()}/scripts.${ext}`
)
).toBeTruthy()
).toBeTruthy()
}

// Expect [uiContext]/styles.sass|less|css for styles
Expand All @@ -130,7 +130,12 @@ describe('extension create', () => {
context?.charAt(0).toUpperCase() + context?.slice(1)

// Vue uses its own file extension
const fileExt = template.uiFramework === 'vue' ? 'vue' : ext
const fileExt =
template.uiFramework === 'vue'
? 'vue'
: template.uiFramework === 'svelte'
? 'svelte'
: ext

expect(
fileExists(
Expand Down

0 comments on commit 21f5698

Please sign in to comment.