Skip to content

Commit

Permalink
Remove sensitive ff
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed Oct 23, 2023
1 parent 32a5830 commit 2ff0311
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions frontend/test/unit/specs/stores/search-store.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,6 @@ describe("Search Store", () => {
it("should not set sensitive query param if mode is `frontend`", () => {
const searchStore = useSearchStore()
const featureFlagStore = useFeatureFlagStore()
featureFlagStore.toggleFeature("sensitive_content", "on")
featureFlagStore.toggleFeature("fetch_sensitive", "on")

const params = computeQueryParams(
Expand All @@ -573,19 +572,21 @@ describe("Search Store", () => {
)
expect(params).toEqual({ q: "cat" })
})
it("should set sensitive query param if mode is `api`", () => {
it("should set sensitive query param if mode is `API`", () => {
const searchStore = useSearchStore()
const featureFlagStore = useFeatureFlagStore()
featureFlagStore.toggleFeature("sensitive_content", "on")
featureFlagStore.toggleFeature("fetch_sensitive", "on")

const params = computeQueryParams(
IMAGE,
searchStore.filters,
"cat",
"api"
"API"
)
expect(params).toEqual({ q: "cat" })
expect(params).toEqual({
q: "cat",
unstable__include_sensitive_results: "true",
})
})
})
})

0 comments on commit 2ff0311

Please sign in to comment.