mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-01 20:42:50 +08:00
fix: post-merge type and test fixes
Library.vue: use Song type from store so SongCard's strict platform union accepts the data (was platform: string, broke after merge tightened SongCard prop type). database.test.ts: switch toEqual -> toMatchObject so getBotInstances() returning extra profile_* schema columns no longer fails the assertion. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
877c431b13
commit
652424b74c
2 files changed
+4
-6
No files matched your search
@@ -68,7 +68,7 @@ describe("database", () => {
|
||||
botDb.saveBotInstance(instance);
|
||||
const instances = botDb.getBotInstances();
|
||||
expect(instances).toHaveLength(1);
|
||||
expect(instances[0]).toEqual(instance);
|
||||
expect(instances[0]).toMatchObject(instance);
|
||||
expect(instances[0].autoStart).toBe(true);
|
||||
|
||||
// Test upsert
|
||||
|
||||
Reference in new issue
Block a user