stack/apps/e2e/tests/backend/endpoints/api/v1/check-feature-support.test.ts
Konsti Wohlwend b0f233a44c
More backend endpoint implementations (#126)
Co-authored-by: Zai Shi <fomalhautb@users.noreply.github.com>
2024-07-13 22:04:53 -07:00

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> },
}
`);
});