Blog Automated testing in JavaScript Automated tests are code written separately, this code runs our functions in various ways and compares results with the expected.