Remove redundant fuzzy_lookup methods from test ReferenceProviders for cleanup
Project CI / AI game creator shell Rust lane 1/2 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust lane 2/2 (pull_request) Has been cancelled
Project CI / AI game creator shell Rust smoke (pull_request) Has been cancelled
Project CI / AI game creator shell Rust crates (pull_request) Has been cancelled
Project CI / Backend tests (pull_request) Has been cancelled
Project CI / Native shell tests (pull_request) Has been cancelled
Project CI / Frontend tests (pull_request) Has been cancelled
Project CI / Repository checks (pull_request) Has been cancelled
Project CI / AI game creator shell web tests (pull_request) Has been cancelled

This commit is contained in:
2026-09-23 18:49:07 +08:00
parent 58c59b750e
commit 136e1ebceb
@@ -464,7 +464,6 @@ describe('ResourceReferenceInput', () => {
// provider 认得出这个 tokenlookup 有候选),但插入那一刻已经解析不出引用(例如资产刚被删)。
const ghostProvider: ReferenceProvider = {
trigger: '@',
fuzzy_lookup: () => [],
lookup: () => [resourceReferenceFromAsset(assets[0]!, 'asset-picker')],
toReference: () => null,
refresh: (reference) => reference,
@@ -495,7 +494,6 @@ describe('ResourceReferenceInput', () => {
// 这时必须落一段正常文本(资源退回 resourceId),粘贴进来的字不许凭空消失。
const brokenProvider: ReferenceProvider = {
trigger: '@',
fuzzy_lookup: () => [],
lookup: () => [
resourceReferenceFromAsset(
asset('ghost-asset', 'character', 'image/png', 'assets/幽灵.png'),
@@ -870,7 +868,6 @@ describe('ResourceReferenceInput', () => {
// provider 契约被破坏:解析得出引用,但答不出 token。它仍然必须活过这一轮润色回写。
const tokenlessProvider: ReferenceProvider = {
trigger: '@',
fuzzy_lookup: () => [],
lookup: () => [reference],
toReference: (part) =>
part.type === 'agc_resource_reference' ? reference : null,