Web / Angular Interview questions
What is the Jasmine test framework?
Jasmine is a JavaScript testing framework that supports a software development practice called Behaviour-Driven Development, or BDD for short. Its a specific flavour of Test-Driven Development (TDD).
Jasmine, and BDD in general, attempts to describe tests in a human-readable format so that non-technical people can understand what is being tested. However, even if you are technical reading tests in BDD format makes it a lot easier to understand whats going on.
For example, to test the below function:
function helloWorld() { return 'Hello world!'; }
describe('Hello world', () => { it('says hello', () => { expect(helloWorld()) .toEqual('Hello world!'); }); });
More Related questions...