chore: update test
This commit is contained in:
parent
e51c6c7742
commit
2c2c46755e
|
|
@ -14,6 +14,8 @@ export function transformTwPrefix(opts: TransformOpts): CodemodPlugin {
|
|||
// this is only used to print the stats in CLI output
|
||||
let transformCount = 0
|
||||
const { config } = opts
|
||||
if (!config.tailwind?.prefix)
|
||||
return transformCount
|
||||
|
||||
// scriptASTs is an array of Program ASTs
|
||||
// in a js/ts file, this array will only have one item
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ const array = [1, 2, 3];
|
|||
|
||||
exports[`transformSFC > defineEmits 1`] = `
|
||||
"<script setup>
|
||||
const emit = defineEmits(["foo"]);
|
||||
const emit = defineEmits(['foo']);
|
||||
</script>
|
||||
"
|
||||
`;
|
||||
|
|
@ -32,7 +32,7 @@ const props = defineProps({
|
|||
exports[`transformSFC > defineProps with external props 1`] = `
|
||||
"<script setup>
|
||||
const props = defineProps({
|
||||
foo: { type: String, required: false, default: "bar" },
|
||||
foo: { type: String, required: false, default: 'bar' },
|
||||
a: { type: String, required: true },
|
||||
b: { type: Number, required: true },
|
||||
});
|
||||
|
|
@ -43,7 +43,7 @@ const props = defineProps({
|
|||
exports[`transformSFC > defineProps with package props 1`] = `
|
||||
"<script setup>
|
||||
const props = defineProps({
|
||||
foo: { type: String, required: false, default: "bar" },
|
||||
foo: { type: String, required: false, default: 'bar' },
|
||||
for: { type: String, required: false },
|
||||
asChild: { type: Boolean, required: false },
|
||||
as: { type: null, required: false },
|
||||
|
|
@ -55,7 +55,7 @@ const props = defineProps({
|
|||
exports[`transformSFC > defineProps with withDefaults 1`] = `
|
||||
"<script setup>
|
||||
const props = defineProps({
|
||||
foo: { type: String, required: true, default: "bar" },
|
||||
foo: { type: String, required: true, default: 'bar' },
|
||||
});
|
||||
</script>
|
||||
"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user