mirror of
https://github.com/Smile-QWQ/SubTracker.git
synced 2026-05-23 01:07:01 +08:00
- 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
14 lines
627 B
TypeScript
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)')
|
|
})
|
|
})
|