Skip to content

Commit

Permalink
refine test naming
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Jan 28, 2025
1 parent 4adb5a8 commit 970199f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api.planx.uk/modules/flows/publish/publish.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ describe("publish", () => {
});
});

describe("update is_statutory_application_type", () => {
describe("how 'is_statutory_application_Type' is updated when a service is published", () => {
beforeEach(() => {
const getStoreMock = vi.spyOn(userContext, "getStore");
getStoreMock.mockReturnValue({
Expand All @@ -156,7 +156,7 @@ describe("update is_statutory_application_type", () => {
},
});
});
it("is_statutory_application_type is true for SetValue component", async () => {
it("checks that is_statutory_application_type is true for SetValue component", async () => {
const checkStatutoryApplicationMock = mockCheckStatApplicationTypesFn(vi);

const alteredFlow = {
Expand All @@ -177,7 +177,7 @@ describe("update is_statutory_application_type", () => {
expect(isStatutoryApplicationType.value).toEqual(true);
});
});
it("is_statutory_application_type is true for Checklist component", async () => {
it("checks whether is_statutory_application_type is true for Checklist component", async () => {
const checkStatutoryApplicationMock = mockCheckStatApplicationTypesFn(vi);

const alteredFlow = {
Expand All @@ -198,7 +198,7 @@ describe("update is_statutory_application_type", () => {
expect(isStatutoryApplicationType.value).toEqual(true);
});
});
it("is_statutory_application_type is true for Question component", async () => {
it("checks is_statutory_application_type is true for Question component", async () => {
const checkStatutoryApplicationMock = mockCheckStatApplicationTypesFn(vi);

const alteredFlow = {
Expand All @@ -219,7 +219,7 @@ describe("update is_statutory_application_type", () => {
expect(isStatutoryApplicationType.value).toEqual(true);
});
});
it("is_statutory_application_type is false when no application type matches schema", async () => {
it("checks is_statutory_application_type is false when no application type matches schema", async () => {
const checkStatutoryApplicationMock = mockCheckStatApplicationTypesFn(vi);

const alteredFlow = {
Expand Down

0 comments on commit 970199f

Please sign in to comment.