Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

integration tests for services#72

Merged
rflechtner merged 14 commits intodevelopfrom
rf-integration-tests
Sep 2, 2020
Merged

integration tests for services#72
rflechtner merged 14 commits intodevelopfrom
rf-integration-tests

Conversation

@rflechtner
Copy link
Contributor

@rflechtner rflechtner commented Jul 31, 2020

fixes KILTProtocol/ticket#617

Adds automated calls to endpoints as integration testing

How to test:

run tests with yarn test:e2e

Checklist:

  • I have verified that the code works
  • I have verified that the code is easy to understand
    • If not, I have left a well-balanced amount of inline comments
  • I have left the code in a better state
  • I have documented the changes (where applicable)

@rflechtner rflechtner force-pushed the rf-integration-tests branch from 345126f to 96b54af Compare August 7, 2020 10:44
@rflechtner rflechtner force-pushed the rf-integration-tests branch from 1e5ed3c to 135bb4d Compare August 7, 2020 14:03
@rflechtner rflechtner marked this pull request as ready for review August 12, 2020 16:14
@rflechtner rflechtner requested a review from LeonFLK August 19, 2020 08:14
@@ -1,6 +1,5 @@
import * as dotenv from 'dotenv'
import * as fs from 'fs'
import { Injectable } from '@nestjs/common'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused import

throw new BadRequestException('bad signature for hash')
}
}
this.contactService.add(contact)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

related to incorrect interfaces

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is 100% necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'd be responding before the request has been fully processed if we don't await. Could silently fail and the requesting party would never know

Copy link
Contributor

@LeonFLK LeonFLK left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Beautiful

LGTM

throw new BadRequestException('bad signature for hash')
}
}
this.contactService.add(contact)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is 100% necessary.

@rflechtner rflechtner merged commit 48d2057 into develop Sep 2, 2020
@rflechtner rflechtner deleted the rf-integration-tests branch September 2, 2020 15:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants