Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Javascript testing made easy using the example of an angular application

Javascript testing made easy using the example of an angular application

Time and again, the testing in the frontend is put on the back burner. For a modern business application it is inevitable to write reasonable tests in the frontend as well. When developing Angular, testability was part of the concept right from the start. In this workshop Fabian Gosebrink shows how to test an Angular application thoroughly. A look is taken at the tools and the different possibilities of testing, so that no case is left untested in the end.

Fabian Gosebrink

February 27, 2019
Tweet

More Decks by Fabian Gosebrink

Other Decks in Technology

Transcript

  1. Some Jasmine Matchers expect(array).toContain(member); expect(mixed).toBeDefined(); expect(mixed).toBeFalsy(); expect(mixed).toBeNull(); expect(mixed).toBeUndefined(); expect(mixed).toEqual(mixed); expect(mixed).toMatch(pattern);

    expect(number).toBeCloseTo(number, decimalPlaces); expect(number).toBeGreaterThan(number); expect(number).toBeLessThan(number); expect(number).toBeNaN(); expect(spy).toHaveBeenCalled(); expect(spy).toHaveBeenCalledTimes(numb er);