Skip to content

Commit

Permalink
feat: test organization accept swu terms
Browse files Browse the repository at this point in the history
  • Loading branch information
IanFonzie committed Jun 27, 2024
1 parent 0940c23 commit 49b78c6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/back-end/integration/resources/organization.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,15 @@ test("organization crud", async () => {
legalName: editedBody.legalName,
updatedAt: expect.any(String)
});

const acceptSWUTermsResult = await user1AppAgent
.put(organizationIdUrl)
.send(adt("acceptSWUTerms"));

expect(acceptSWUTermsResult.status).toEqual(200);
expect(acceptSWUTermsResult.body).toMatchObject({
...editResult.body,
acceptedSWUTerms: expect.any(String),
updatedAt: expect.any(String)
});
});

0 comments on commit 49b78c6

Please sign in to comment.