I'm learning AVAJS recently. One thing that sounds kind of abstract to me is 'assertion methods', or simply assertion. For example:
What is it, or what it actually does in programming. I'm looking for some easy-understanding docs to read up. Any recommendations?

In most javascript test frameworks (including ava) assertion methods are simply functions that throws an error if the asserted condition is not met.
For example the method:
will simply throw an error if the value of
xis1or"hello"orfalseetc. As long as the value ofxis nottruet.true()will throw an error.The way most js test frameworks work is to catch all thrown errors and output a nice report.