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

Function create_org_request_body

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

Source from the content-addressed store, hash-verified

179
180 #[test]
181 fn create_org_request_body() {
182 let body = CreateOrgRequest {
183 slug: "acme-corp",
184 name: "Acme Corp",
185 email: Some("admin@acme.com"),
186 };
187 let json = serde_json::to_value(&body).unwrap();
188 assert_eq!(json["slug"], "acme-corp");
189 assert_eq!(json["name"], "Acme Corp");
190 assert_eq!(json["email"], "admin@acme.com");
191 }
192
193 #[test]
194 fn create_org_request_body_no_email() {

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected