July 2017
Intermediate to advanced
454 pages
10h 1m
English
When we install Angular CLI, the Jasmine framework is automatically shipped with the tool.
In the preceding section, we saw the general syntax of writing a test in Jasmine. Now, let's write a quick test script using the Jasmine framework:
describe('JavaScript addition operator', function () { it('adds two numbers together', function () { expect(1 + 2).toEqual(3); });});
The following are the important things to note about the preceding test script:
Read now
Unlock full access