Skip to content

Commit

Permalink
additional test case
Browse files Browse the repository at this point in the history
  • Loading branch information
tiftran committed Feb 6, 2024
1 parent cacac8a commit 491f832
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion components/suggest/src/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3301,7 +3301,7 @@ mod tests {
"description": "pocket suggestion",
"url": "https://getpocket.com/collections/its-not-just-burnout-how-grind-culture-failed-women",
"lowConfidenceKeywords": ["soft life", "soft living", "soft work", "workaholism", "toxic work culture"],
"highConfidenceKeywords": ["burnout women", "grind culture", "women burnout"],
"highConfidenceKeywords": ["burnout women", "grind culture", "women burnout", "soft lives"],
"title": "‘It’s Not Just Burnout:’ How Grind Culture Fails Women",
"score": 0.05
}
Expand Down Expand Up @@ -3332,6 +3332,24 @@ mod tests {
]
"#]],
),
(
"keyword = `soft lives`; pocket",
SuggestionQuery {
keyword: "soft lives".into(),
providers: vec![SuggestionProvider::Pocket],
limit: None,
},
expect![[r#"
[
Pocket {
title: "‘It’s Not Just Burnout:’ How Grind Culture Fails Women",
url: "https://getpocket.com/collections/its-not-just-burnout-how-grind-culture-failed-women",
score: 0.05,
is_top_pick: true,
},
]
"#]],
),
(
"keyword = `masking `; amo provider",
SuggestionQuery {
Expand Down

0 comments on commit 491f832

Please sign in to comment.