feat(kvt): GIF-picker rating r en taal nl-nl
@@ -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
7
const FORBIDDEN_STATUS: u16 = 403;7
const FORBIDDEN_STATUS: u16 = 403;8
const RESULT_LIMIT: &str = "27";8
const RESULT_LIMIT: &str = "27";9
const RATING: &str = "g";9
const RATING: &str = "r";10
const LANGUAGE: &str = "de-de";10
const LANGUAGE: &str = "nl-nl";11
11
12
#[derive(Debug, Clone, PartialEq, Eq)]12
#[derive(Debug, Clone, PartialEq, Eq)]13
pub struct Gif {13
pub 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