MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / create_org_request_body_no_email

Function create_org_request_body_no_email

atomic-teams/src/org.rs:194–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

192
193 #[test]
194 fn create_org_request_body_no_email() {
195 let body = CreateOrgRequest {
196 slug: "acme-corp",
197 name: "Acme Corp",
198 email: None,
199 };
200 let json = serde_json::to_value(&body).unwrap();
201 assert_eq!(json["name"], "Acme Corp");
202 assert!(json.get("email").is_none());
203 }
204
205 #[test]
206 fn update_org_request_partial() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected