Closed prestonmcgowan closed 1 year ago
Additionally, the next failure would have been locating the fibonacci.sjs file. Where can this file be located?
Seems like if the variable actual
variable is going to be re-used, the second code block should leave out the let
and just set a new value, or both of those declarations should use var
instead of let
.
I think the original intent was to show two different usages, which is ok. Just the collector for the assertions should be two different variables. Otherwise the two different scenarios should be different examples.
Please don't use var
. In fact, the example should be using const
instead of let
since the reference to the actual
variable isn't changing just its contents.
Old docs have been replaced.
https://marklogic-community.github.io/marklogic-unit-test/docs/testing-with-sjs/
The sample code provided in documentation should execute without needing to be debugged.