Files
SubTracker/apps/web/tests/unit/composables/version-update-query.test.ts
SmileQWQ be70f8d2d9 feat: align lite brand and settings surfaces
- sync the main-branch brand logo, login header, and sidebar update entry while keeping lite labels
- wire the frontend version update query and commit-based update modal on the lite surface
- move forgot-password controls back into credentials, restore About or Credits, and keep worker-specific hints intact
- refresh README navigation and add frontend regression coverage for branding, settings, and version entry points
2026-05-12 22:11:03 +08:00

14 lines
627 B
TypeScript

import { readFileSync } from 'node:fs'
import { describe, expect, it } from 'vitest'
describe('version update query', () => {
it('defines the version update query key and currentVersion-bound query', () => {
const source = readFileSync('src/composables/version-update-query.ts', 'utf8')
expect(source).toContain("export const VERSION_UPDATE_QUERY_KEY = ['version-updates'] as const")
expect(source).toContain('queryKey: [...VERSION_UPDATE_QUERY_KEY, currentVersion]')
expect(source).toContain('api.getVersionUpdates(currentVersion)')
expect(source).toContain('enabled: Boolean(currentVersion)')
})
})