mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 13:38:31 +00:00
fix: update the logic for add model from admin side
This commit is contained in:
@@ -218,5 +218,10 @@ describe("permanent model deletion", () => {
|
||||
|
||||
const backup = await db.exportDb();
|
||||
expect(backup.deletedModels).toMatchObject({ [providerId]: [modelId] });
|
||||
|
||||
expect(await db.restoreDeletedModel(providerPrefix, `${modelId}(high)`)).toBe(true);
|
||||
expect(await db.isDeletedModel(providerId, modelId)).toBe(false);
|
||||
expect(await db.isDeletedModel(providerPrefix, `${modelId}(high)`)).toBe(false);
|
||||
expect((await db.getDeletedModels())[providerId]).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user