Skip to content

Commit 6fc3fff

Browse files
Merge the settings search test cleanup into annotation dictation
2 parents f7b3094 + a651e91 commit 6fc3fff

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

‎apps/web/src/components/settings/settingsSearch.test.ts‎

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,10 @@ describe("settings search targets", () => {
233233
expect(isSettingsSearchScopeAvailable(fallback.scope, "all")).toBe(true);
234234
expect(isSettingsSearchScopeAvailable(fallback.scope, "project")).toBe(false);
235235
for (const id of ["response-streaming", "speech-project-dictionary"]) {
236-
const defaults = getSettingsSearchTargetScope(id)!;
237-
expect(defaults.scope).toBe("project-defaults");
238-
for (const scope of ["all", "environment", "project"] as const) {
239-
expect(isSettingsSearchScopeAvailable(defaults.scope, scope)).toBe(true);
240-
}
236+
expect(getSettingsSearchTargetScope(id)?.scope).toBe("project-defaults");
237+
}
238+
for (const scope of ["all", "environment", "project"] as const) {
239+
expect(isSettingsSearchScopeAvailable("project-defaults", scope)).toBe(true);
241240
}
242241
for (const id of ["legacy-plan-mode", "legacy-context-window-indicator", "boring-sidebar"]) {
243242
expect(getSettingsSearchTargetScope(id)!.scope).toBeNull();

0 commit comments

Comments
 (0)