Replies: 2 comments 2 replies
-
We can make |
Beta Was this translation helpful? Give feedback.
1 reply
-
btw we have introduced the interface in v2.0.2 ;) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've a method that looks something like this:
Given a JetStream message, It executes some logic and based on the processing it'll ack or nak.
I'm trying unit test that method, however it has proven to be a challenge given that NatsJSMsg's constructor is internal and does not implement any interface that could be mocked.
Here's what I've came up with to validate if a message has been acked.
Is there any other way to test this? If not, could we please improve this code path to make it easier to test?
Beta Was this translation helpful? Give feedback.
All reactions