mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-27 21:01:03 +08:00
20 lines
666 B
TypeScript
20 lines
666 B
TypeScript
import { it } from "../../../../helpers";
|
|
import { InternalProjectKeys, backendContext, niceBackendFetch } from "../../../backend-helpers";
|
|
import { describe } from "vitest";
|
|
|
|
it("should return an error message", async ({ expect }) => {
|
|
const response = await niceBackendFetch("/api/v1/check-feature-support", {
|
|
method: "POST",
|
|
body: {
|
|
feature_name: "some-feature"
|
|
},
|
|
});
|
|
expect(response).toMatchInlineSnapshot(`
|
|
NiceResponse {
|
|
"status": 200,
|
|
"body": "some-feature is not yet supported. Please reach out to Stack support for more information.",
|
|
"headers": Headers { <some fields may have been hidden> },
|
|
}
|
|
`);
|
|
});
|