Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(backend): add test for unknown destination account #2562

Merged
merged 2 commits into from
Mar 22, 2024

Conversation

sabineschaller
Copy link
Member

Changes proposed in this pull request

Context

fixes #974

Checklist

  • Related issues linked using fixes #number
  • Tests added/updated
  • Documentation added
  • Make sure that all checks pass
  • Bruno collection updated

@github-actions github-actions bot added type: tests Testing related pkg: backend Changes in the backend package. type: source Changes business logic labels Mar 18, 2024
Copy link

netlify bot commented Mar 18, 2024

Deploy Preview for brilliant-pasca-3e80ec ready!

Name Link
🔨 Latest commit 231b819
🔍 Latest deploy log https://app.netlify.com/sites/brilliant-pasca-3e80ec/deploys/65fad819b3665b0008e68927
😎 Deploy Preview https://deploy-preview-2562--brilliant-pasca-3e80ec.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Comment on lines +144 to +146
await expect(middleware(ctx, next)).rejects.toThrow(
'unknown destination account'
)
Copy link
Contributor

Choose a reason for hiding this comment

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

The task stated we should check for an UnreachableError specifically. I wondered if that was incidental or a core part of the task to ensure we're surfacing errors from the ilp spec or something? Probably couldn't hurt to include either way I guess.

    await expect(middleware(ctx, next)).rejects.toThrow(
      Errors.UnreachableError
    )

@sabineschaller sabineschaller merged commit ae5777c into main Mar 22, 2024
22 checks passed
@sabineschaller sabineschaller deleted the s2-test-unknown-stream-destination-account branch March 22, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: backend Changes in the backend package. type: source Changes business logic type: tests Testing related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test unknown stream destination account
2 participants