import test from 'node:test'
import assert from 'node:assert/strict'
import {readFileSync} from 'node:fs'
import * as Vue from 'vue'
import {compile} from '@vue/compiler-dom'
import {renderToString} from '@vue/server-renderer'
import {loraFriendlyName,loraIdentityKey} from '../utils/loras.ts'
test('LoRA dropdown renders one clean label or alias, with filename only in tooltip',async()=>{
const source=readFileSync(new URL('../components/LoraSelect.vue',import.meta.url),'utf8')
const option=source.match(/