BlueGit

ict rusty-teams

feat(kvt): GIF-picker rating r en taal nl-nl

hephaestus

Authored 2026-12-03 · 1 day ago

Hash
5868f7cb32e1624001d9f682bf9c92b98ee3ecd1
Parent
5113b1a2
Pipeline
Passed
1 file changed +4 −2
crates/chatsvc/src/gifs.rs +4 −2
@@ -6,8 +6,8 @@ use crate::error::{Error, Result};
6 6
7 7 const FORBIDDEN_STATUS: u16 = 403;
8 8 const RESULT_LIMIT: &str = "27";
9 const RATING: &str = "g";
10 const LANGUAGE: &str = "de-de";
9 const RATING: &str = "r";
10 const LANGUAGE: &str = "nl-nl";
11 11
12 12 #[derive(Debug, Clone, PartialEq, Eq)]
13 13 pub struct Gif {
@@ -162,7 +162,9 @@ mod tests {
162 162 "https://teams.cloud.microsoft/api/mt/emea/beta/commands/com.microsoft.teamspace.inputextension.giphy/execute?version=1.0"
163 163 );
164 164 assert_eq!(request.body.as_ref().unwrap()[0]["value"], "thumbs up");
165 assert_eq!(request.body.as_ref().unwrap()[1]["value"], "r");
165 166 assert_eq!(request.body.as_ref().unwrap()[2]["value"], "27");
167 assert_eq!(request.body.as_ref().unwrap()[3]["value"], "nl-nl");
166 168 assert_eq!(*scope, spaces_scope());
167 169 }
168 170
@@ -6,8 +6,8 @@ use crate::error::{Error, Result};
6
6
7const FORBIDDEN_STATUS: u16 = 403;
7const FORBIDDEN_STATUS: u16 = 403;
8const RESULT_LIMIT: &str = "27";
8const RESULT_LIMIT: &str = "27";
9const RATING: &str = "g";
9const RATING: &str = "r";
10const LANGUAGE: &str = "de-de";
10const LANGUAGE: &str = "nl-nl";
11
11
12#[derive(Debug, Clone, PartialEq, Eq)]
12#[derive(Debug, Clone, PartialEq, Eq)]
13pub struct Gif {
13pub struct Gif {
@@ -162,7 +162,9 @@ mod tests {
162 "https://teams.cloud.microsoft/api/mt/emea/beta/commands/com.microsoft.teamspace.inputextension.giphy/execute?version=1.0"
162 "https://teams.cloud.microsoft/api/mt/emea/beta/commands/com.microsoft.teamspace.inputextension.giphy/execute?version=1.0"
163 );
163 );
164 assert_eq!(request.body.as_ref().unwrap()[0]["value"], "thumbs up");
164 assert_eq!(request.body.as_ref().unwrap()[0]["value"], "thumbs up");
165 assert_eq!(request.body.as_ref().unwrap()[1]["value"], "r");
165 assert_eq!(request.body.as_ref().unwrap()[2]["value"], "27");
166 assert_eq!(request.body.as_ref().unwrap()[2]["value"], "27");
167 assert_eq!(request.body.as_ref().unwrap()[3]["value"], "nl-nl");
166 assert_eq!(*scope, spaces_scope());
168 assert_eq!(*scope, spaces_scope());
167 }
169 }
168
170