Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Questions about this React unit test

I am new to React and am confused by this unit test:

https://jsbin.com/yerudasixu/edit?html,js,output

What cause the following output:
1..2
# tests 2
# pass  2

# ok


And where is is that 2 tests are configured??
SOLUTION
Avatar of Juan Ocasio
Juan Ocasio
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

I know the code that created this. My question is "which two tests passed"?

I do not understand what, in the code you posted, constitutes a test?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks