Skip to content

Commit

Permalink
fix: remove duplicated test
Browse files Browse the repository at this point in the history
  • Loading branch information
Atix committed Sep 15, 2021
1 parent 113681e commit bdaf226
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
Expand Up @@ -161,7 +161,7 @@ const parseTransactionRows = (result: QueryResult<FindTransaction>): Transaction
}));

/**
* Maps from a total count query result to a string
* Maps from a total count query result to a number
*/
const parseTotalCount = (result: QueryResult<TotalCount>): number => result.rows[0].totalCount;

Expand Down
Expand Up @@ -1311,24 +1311,6 @@ describe('/search/transactions endpoint', () => {
total_count: 0
});
});
// eslint-disable-next-line sonarjs/no-identical-functions
test('Should return transactions with vote registration type, max block and success filters', async () => {
const response = await server.inject({
method: 'post',
url: SEARCH_TRANSACTIONS_ENDPOINT,
payload: generateSearchTransactionsPayload(CARDANO, MAINNET, {
limit: 2,
type: OperationType.VOTE_REGISTRATION,
maxBlock: 5593740,
success: false
})
});
expect(response.statusCode).toEqual(StatusCodes.OK);
expect(response.json()).toEqual({
transactions: [],
total_count: 0
});
});
test('Should return transactions with withdrawal type filter', async () => {
const response = await server.inject({
method: 'post',
Expand Down

0 comments on commit bdaf226

Please sign in to comment.