Skip to content

Commit

Permalink
Add failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-wade committed Apr 10, 2022
1 parent 1ce68fa commit b925fc6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions tests/lib/rules/multi-word-component-names.js
Expand Up @@ -202,6 +202,17 @@ tester.run('multi-word-component-names', rule, {
},
}).$mount('#app')
`
},
{
filename: 'test.vue',
code: `
<template>
<AppButton />
</template>
<script setup lang="ts">
import AppButton from "@/components/AppButton.vue";
</script>`
}
],
invalid: [
Expand Down Expand Up @@ -309,6 +320,19 @@ tester.run('multi-word-component-names', rule, {
line: 4
}
]
},
{
filename: 'test.vue',
code: `
<script setup lang="ts">
import Item from "@/components/Item.vue";
</script>`,
errors: [
{
message: 'Component name "Item" should always be multi-word.',
line: 3
}
]
}
]
})

0 comments on commit b925fc6

Please sign in to comment.