Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
chore(test): add a test that confirms a 404 is returned when a contra…
Browse files Browse the repository at this point in the history
…ct does not exist
  • Loading branch information
dtfiedler committed Sep 20, 2023
1 parent e3ffdb0 commit 0186f86
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/integration/routes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ describe('PDNS Service Integration tests', () => {
const { status } = await axios.get(`/v1/contract/non-matching-regex`);
expect(status).to.equal(404);
});

it('should throw a 404 for a contract that does not exist/has not been mined', async () => {
const { status } = await axios.get(
'/v1/contract/kbtXub0JcZYfBn7-WUgkFQjKmZb4y5DY2nT8WovBhWY',
);
expect(status).to.equal(404);
});
});

describe('/:contractTxId/interactions', () => {
Expand Down

0 comments on commit 0186f86

Please sign in to comment.