Skip to content

Commit

Permalink
Update err messages in integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulla-ashurov committed Sep 30, 2023
1 parent 8d990bd commit dc3db0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/did/create.negative.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ test('[Negative] It cannot create DID with an invalid id format in DIDDocument i
},
headers: { "Content-Type": "application/json" }
});
expect(response.status()).toBe(StatusCodes.INTERNAL_SERVER_ERROR);
expect(await response.text()).toEqual(expect.stringContaining("unable to split did into method, namespace and id"));
expect(response.status()).toBe(StatusCodes.BAD_REQUEST);
expect(await response.text()).toEqual(expect.stringContaining("Invalid didDocument"));
});

test('[Negative] It cannot create DID without VerificationMethodType in request body (JSON based)', async ({ request }) => {
Expand All @@ -155,7 +155,7 @@ test('[Negative] It cannot create DID without VerificationMethodType in request
headers: { "Content-Type": "application/json" }
});
expect(response.status()).toBe(StatusCodes.BAD_REQUEST);
expect(await response.text()).toEqual(expect.stringContaining("Provide options section to create a DID"));
expect(await response.text()).toEqual(expect.stringContaining("Invalid didDocument"));
});

test('[Negative] It cannot create DID without DidDocument in request body (JSON based)', async ({ request }) => {
Expand Down

0 comments on commit dc3db0c

Please sign in to comment.