How to mock featureCall with $cstNode? #1745
Unanswered
durianwaffle
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey @durianwaffle, All |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I am currently using the code below to test a function
isFeatureCallArgNumberCorrect
. This function relays onfeatureCall.$cstNode?.text
and alsofeatureCall.element.ref.type.reference?.ref.name
.The logic is to get the featurecall from parsed document. But I found that there is no $cstNode in the featurecall from parsed document. Why is it? Any suggestions for me to mock a featureCall that has those elements for my unit tests?
Beta Was this translation helpful? Give feedback.
All reactions