Skip to content

Commit da0600b

Browse files
committed
fix(tests): update AI Director tests after PascalCase mode changes
1 parent a6e9fed commit da0600b

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

src/domains/ai-director/machines/__tests__/ai-director-machine.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe("AI Director Machine", () => {
5757
}
5858

5959
const mockConfig: AIDirectorConfig = {
60-
performance_mode: "balanced",
60+
performance_mode: "Balanced",
6161
enable_audio_analysis: true,
6262
enable_scene_detection: true,
6363
enable_video_analysis: true,

src/domains/ai-director/services/__tests__/ai-director-service.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe("AI Director Service", () => {
7575
}
7676

7777
const mockConfig: AIDirectorConfig = {
78-
performance_mode: "balanced",
78+
performance_mode: "Balanced",
7979
enable_audio_analysis: true,
8080
enable_scene_detection: true,
8181
enable_video_analysis: true,
@@ -258,7 +258,7 @@ describe("AI Director Service", () => {
258258
enable_ffmpeg_analysis: true,
259259
enable_montage_analysis: true,
260260
enable_transcription: false,
261-
performance_mode: "balanced",
261+
performance_mode: "Balanced",
262262
})
263263
expect(result).toEqual(audioResult)
264264
})
@@ -272,7 +272,7 @@ describe("AI Director Service", () => {
272272
enable_ffmpeg_analysis: true,
273273
enable_montage_analysis: true,
274274
enable_transcription: false,
275-
performance_mode: "balanced",
275+
performance_mode: "Balanced",
276276
})
277277
})
278278
})
@@ -299,7 +299,7 @@ describe("AI Director Service", () => {
299299
})
300300

301301
expect(mockTauriCommands.unifiedAudioAnalyzeBatch).toHaveBeenCalledWith(["/video1.mp4", "/video2.mp4"], {
302-
performance_mode: "fast",
302+
performance_mode: "Fast",
303303
})
304304
expect(result).toEqual(audioResults)
305305
})
@@ -392,7 +392,7 @@ describe("AI Director Service", () => {
392392

393393
describe("updateConfiguration", () => {
394394
it("should update configuration", async () => {
395-
await service.updateConfiguration({ performance_mode: "fast" })
395+
await service.updateConfiguration({ performance_mode: "Fast" })
396396

397397
// TODO: Verify when backend command is implemented
398398
})

src/domains/ai-director/tauri/__tests__/ai-director-commands.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ describe("AI Director Tauri Commands", () => {
5858
it("should invoke Tauri command with video path and config", async () => {
5959
const videoPath = "/path/to/video.mp4"
6060
const config: AIDirectorConfig = {
61-
performance_mode: "balanced",
61+
performance_mode: "Balanced",
6262
enable_audio_analysis: true,
6363
enable_scene_detection: true,
6464
enable_video_analysis: true,
@@ -147,7 +147,7 @@ describe("AI Director Tauri Commands", () => {
147147
it("should invoke batch analysis with multiple files", async () => {
148148
const filePaths = ["/video1.mp4", "/video2.mp4", "/video3.mp4"]
149149
const config: AIDirectorConfig = {
150-
performance_mode: "fast",
150+
performance_mode: "Fast",
151151
enable_audio_analysis: true,
152152
enable_scene_detection: false,
153153
enable_video_analysis: true,
@@ -299,7 +299,7 @@ describe("AI Director Tauri Commands", () => {
299299
describe("aiDirectorValidateConfig", () => {
300300
it("should validate valid config", async () => {
301301
const config: AIDirectorConfig = {
302-
performance_mode: "balanced",
302+
performance_mode: "Balanced",
303303
enable_audio_analysis: true,
304304
enable_scene_detection: true,
305305
enable_video_analysis: true,
@@ -327,7 +327,7 @@ describe("AI Director Tauri Commands", () => {
327327

328328
it("should return warnings for potentially problematic config", async () => {
329329
const config: AIDirectorConfig = {
330-
performance_mode: "quality",
330+
performance_mode: "Quality",
331331
enable_audio_analysis: true,
332332
enable_scene_detection: true,
333333
enable_video_analysis: true,
@@ -354,7 +354,7 @@ describe("AI Director Tauri Commands", () => {
354354

355355
it("should return errors for invalid config", async () => {
356356
const config: AIDirectorConfig = {
357-
performance_mode: "balanced",
357+
performance_mode: "Balanced",
358358
enable_audio_analysis: false,
359359
enable_scene_detection: false,
360360
enable_video_analysis: false,
@@ -445,7 +445,7 @@ describe("AI Director Tauri Commands", () => {
445445
enable_ffmpeg_analysis: true,
446446
enable_montage_analysis: true,
447447
enable_transcription: false,
448-
performance_mode: "balanced" as const,
448+
performance_mode: "Balanced" as const,
449449
}
450450

451451
mockInvoke.mockResolvedValueOnce({ audio_data: "test" })
@@ -471,7 +471,7 @@ describe("AI Director Tauri Commands", () => {
471471
enable_ffmpeg_analysis: true,
472472
enable_montage_analysis: true,
473473
enable_transcription: false,
474-
performance_mode: "balanced",
474+
performance_mode: "Balanced",
475475
},
476476
})
477477
})
@@ -492,15 +492,15 @@ describe("AI Director Tauri Commands", () => {
492492
describe("unifiedAudioAnalyzeBatch", () => {
493493
it("should invoke batch audio analysis", async () => {
494494
const filePaths = ["/video1.mp4", "/video2.mp4"]
495-
const config = { performance_mode: "fast" as const }
495+
const config = { performance_mode: "Fast" as const }
496496

497497
mockInvoke.mockResolvedValueOnce([{ audio_data: "1" }, { audio_data: "2" }])
498498

499499
await unifiedAudioAnalyzeBatch(filePaths, config)
500500

501501
expect(mockInvoke).toHaveBeenCalledWith("unified_audio_analyze_batch", {
502502
filePaths,
503-
config: { performance_mode: "fast" },
503+
config: { performance_mode: "Fast" },
504504
})
505505
})
506506

@@ -513,7 +513,7 @@ describe("AI Director Tauri Commands", () => {
513513

514514
expect(mockInvoke).toHaveBeenCalledWith("unified_audio_analyze_batch", {
515515
filePaths,
516-
config: { performance_mode: "fast" },
516+
config: { performance_mode: "Fast" },
517517
})
518518
})
519519
})

0 commit comments

Comments
 (0)