mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
fix(migration): verify BookLore v2.4.0 compatibility
This commit is contained in:
@@ -130,6 +130,16 @@ describe('MigrationModal reset setup', () => {
|
||||
)
|
||||
})
|
||||
|
||||
it('shows BookLore compatibility with the latest verified release', async () => {
|
||||
migrationApiMocks.getWorkflowState.mockResolvedValueOnce({ active: null, hasActiveRun: false })
|
||||
|
||||
const wrapper = mountModal()
|
||||
await flushPromises()
|
||||
|
||||
expect(wrapper.text()).toContain('Verified against: v2.4.0')
|
||||
expect(wrapper.text()).not.toContain('v2.2.2')
|
||||
})
|
||||
|
||||
it('resets saved source setup and clears the form', async () => {
|
||||
migrationApiMocks.getWorkflowState.mockResolvedValueOnce(sourceState()).mockResolvedValueOnce({ active: null, hasActiveRun: false })
|
||||
|
||||
|
||||
@@ -1292,7 +1292,7 @@ interface SourceTypeCompatibility {
|
||||
const sourceTypeCompatibility = computed<SourceTypeCompatibility | null>(() => {
|
||||
const compatibility: Record<string, SourceTypeCompatibility> = {
|
||||
booklore: {
|
||||
testedVersions: ['v2.2.2'],
|
||||
testedVersions: ['v2.4.0'],
|
||||
note: t('migration.source.compatibility.note'),
|
||||
},
|
||||
grimmory: {
|
||||
|
||||
Reference in New Issue
Block a user