Writing Tests
Learn how to write tests using the Jasmine framework.
We'll cover the following...
Let’s write some tests for Adder.
To introduce some of the basics of testing, we’re going to take a look at what our tests for Adder would look like using the Jasmine framework. However, we won’t be running them because for now, our only concern is a baseline understanding of how the tests work. .
We group tests in Jasmine together using a test suite.
Test suite
Press + to interact
describe('Adder', () => {// Tests go here});
describe
: We’ll begin our test