fix(test): update load_image test for [image: photo] placeholder
The test was checking ForLLM for the media:// ref, but load_image now emits the generic [image: photo] placeholder instead. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c0d8568af9
commit
b46e4d4c84
1 changed files with 4 additions and 3 deletions
|
|
@ -135,9 +135,10 @@ func TestLoadImage_SuccessPath(t *testing.T) {
|
|||
t.Errorf("expected ForLLM to contain '[image:' marker, got: %s", result.ForLLM)
|
||||
}
|
||||
|
||||
// 4. ForLLM should also contain the media:// ref
|
||||
if !strings.Contains(result.ForLLM, result.Media[0]) {
|
||||
t.Errorf("expected ForLLM to contain media ref %q, got: %s", result.Media[0], result.ForLLM)
|
||||
// 4. ForLLM should contain the generic [image: photo] placeholder
|
||||
// (resolveMediaRefs will replace it with the actual path later)
|
||||
if !strings.Contains(result.ForLLM, "[image: photo]") {
|
||||
t.Errorf("expected ForLLM to contain '[image: photo]' placeholder, got: %s", result.ForLLM)
|
||||
}
|
||||
|
||||
// 5. Verify the ref is resolvable in the store
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue